Skip to content

Tag

Tag

TagProps

& & {...}
NameTypeDescription
disabledbooleanValue responsible for tag availability
activebooleanValue responsible for tag activity
interactivebooleanInteractive tag
useTag type
themeTag theme, there are several default themes or you can use your color
colorstringTag color text
sizeTag size
addonLeftReact.ElementTypeLeft addon tag
addonRightReact.ElementTypeRight addon tag
localestring

Tag.Addon

The addon inside the tag (most commonly an icon) sets the correct indents depending on the size.

It takes all the properties of the Box.

jsx
import Tag from 'intergalactic/tag';
<Tag.Addon />;
import Tag from 'intergalactic/tag';
<Tag.Addon />;

Tag.Text

This ordinary text sets the appropriate indents depending on the size. If a simple text without addons is used in the Tag, it will turn into Tag.Text automatically.

It takes all the properties of the Box.

jsx
import Tag from 'intergalactic/tag';
<Tag.Text />;
import Tag from 'intergalactic/tag';
<Tag.Text />;

Tag.Close

Cross icon automatically adjusts to the selected theme and size.

It accepts all Box properties.

jsx
import Tag from 'intergalactic/tag';
<Tag.Close />;
import Tag from 'intergalactic/tag';
<Tag.Close />;

Tag.Circle

A special addon for round elements inside a tag (most often a picture) places the correct indents depending on the size.

It accepts all Box properties.

jsx
import Tag from 'intergalactic/tag';
<Tag.Circle />;
import Tag from 'intergalactic/tag';
<Tag.Circle />;

Released under the MIT License.

Released under the MIT License.