1.5.0 • Published 2 years ago

@neoauto-ui/tag v1.5.0

Weekly downloads
-
License
ISC
Repository
bitbucket
Last release
2 years ago

Tag

Installation

yarn add @neoauto-ui/tag

Import

import { Tag } from '@neoauto-ui/tag';

Basic Usage

<Tag>Concesionario</Tag>

Tag icon

To add an icon to the tag, use the icon property.

You can also pass the iconBoxSize prop to change the size of the icon.

<Tag icon={ <Certificate /> }>Concesionario</Tag>
<Tag icon={ <Certificate /> } iconBoxSize="14px">Concesionario</Tag>

Tag variants

Use the variant prop to change the visual style of the Tag. You can set the value to outline, filled, skew or circle.

<Tag icon={ <Map /> } iconBoxSize="14px" variant="outline">Santiago de surco, Lima, Lima</Tag>
<Tag icon={ <Certificate /> } iconBoxSize="14px" variant="filled">Concesionario</Tag>
<Tag variant="skew">PREMIUM</Tag>
<Tag icon={ <Certificate /> } variant="circle" />

Tag sizes

Use the size prop to change the size of the tag. You can set the value to md, sm.

<Tag variant="skew" size="md">Height 40</Tag>
<Tag variant="skew" size="sm">Height 28</Tag>
1.5.0

2 years ago

1.4.0

2 years ago

1.2.0

2 years ago

1.3.0-alpha.0

2 years ago

1.3.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.1.2

2 years ago

1.0.0

2 years ago