1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

Tags component

This commit is contained in:
muerwre 2019-07-27 18:28:28 +07:00
parent c13c0fcc3c
commit 9435df5b10
6 changed files with 39 additions and 11 deletions

View file

@ -10,6 +10,7 @@ import { Filler } from "~/components/containers/Filler";
import { Tag } from "~/components/node/Tag";
import { TagField } from "~/components/containers/TagField";
import {NodeRelated} from "~/components/node/NodeRelated";
import {Tags} from "~/components/node/Tags";
interface IProps {}
@ -82,13 +83,17 @@ const ImageExample: FC<IProps> = () => (
</Group>
</Padder>
<TagField>
<Tag title="Избранный" feature="red" />
<Tag title="Плэйлист" feature="green" />
<Tag title="Tag" />
<Tag title="Фотография" feature="black" />
<Tag title="С музыкой" feature="black" />
</TagField>
{
<Tags
tags={[
{ title: 'Избранный', feature: 'red' },
{ title: 'Плейлист', feature: 'green' },
{ title: 'Просто' },
{ title: '+ фото', feature: 'black' },
{ title: '+ с музыкой', feature: 'black' },
]}
/>
}
<NodeRelated
title="First album"