Tags

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 yellow
primary yellow
Dark yellow
light green
primary indigo
Darker 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 nameTypeDefaultDescription
variantString'primary'color shade (light | primary | dark)
colorString'blue'color palette (blue | indigo | grey | yellow | red | green) these colors may be different if theme is overwritten
themeObjectBridge Themeuse to override default bridge theme