Skip to main content

Tag

Implementation#

import { Tag } from "slipstream-ui";
const Example = () => <Tag />;

Color#

Example
Tag Text
Tag Text
Tag Text
Tag Text
Tag Text
Tag Text
<Tag bg="gray">...</Tag>
<Tag bg="red">...</Tag>
<Tag bg="blue">...</Tag>
<Tag bg="gray" shade="900" color="white">...</Tag>
<Tag bg="red" shade="900" color="white">...</Tag>
<Tag bg="blue" shade="900" color="white">...</Tag>

Size#

Example
Tag Text
Tag Text
Tag Text
<Tag size="sm">...</Tag>
<Tag size="md">...</Tag>
<Tag size="lg">...</Tag>

Rounded#

Example
Tag Text
Tag Text
Tag Text
Tag Text
<Tag rounded="sm">...</Tag>
<Tag rounded="md">...</Tag>
<Tag rounded="lg">...</Tag>
<Tag rounded="full">...</Tag>

Block#

Example
Tag Text
<Tag block />

Props#

AttributeTypeValueDefault ValueDescription
bgstringe.g. redgrayBackground color
colorstringe.g. bluetext-blackText color
shadestring/numbere.g. 900200Shade of background color
sizestringsm/md/lgsmSize of tag
roundedstringe.g. fullsmBorder radius of tag
blockbooleantrue/falseundefinedChange tag from inline to a block element