Tags are used for categorizing and labeling. Tag will fit to expand the text inside it.
For information on Tags style and usage guidelines, check out Tags Design Guidelines.
Example
import from '@hack4impact-uiuc/bridge'I'm a tag
Color Variants
Tags follow the color palette shades. You define the color palette with the color prop and the shade of the color with the variant prop. Only use the light, primary, and dark shades.
Bridge has blue, indigo, grey, yellow, red, and green palettes. Check out the design principles for more detailed information.
Light yellowprimary yellowDark yellowlight greenprimary indigoDarker red
Common Props
Tag includes COMMON props. Note that color will not work here due to its use for color variants. Read Common Props for details and API. These common props will override component props such as the color.
Component Props
| Prop name | Type | Default | Description |
|---|---|---|---|
| variant | String | 'primary' | color shade (light | primary | dark) |
| color | String | 'blue' | color palette (blue | indigo | grey | yellow | red | green) these colors may be different if theme is overwritten |
| theme | Object | Bridge Theme | use to override default bridge theme |