You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a user, I want to see colored labels for items belonging to a group, collection, or class.
Description
Create a React component, Badge, that can be configured to appear in all of the styles shown in the Figma file for Shipfaster UI. Badge should be located in the shared component library. Note that this may, though does not necessarily have to, involve adding color definitions to packages/tailwind-config/tailwind.config.js.
Acceptance Criteria
Badges can have a size of either 'sm', 'md', or 'lg'.
Badges can have a type of either 'primary', 'neutral', 'success', 'warning', or 'danger'.
Badges can have an appearance of either 'filled', 'accent', or 'outlined'.
Badges can optionally visually respond to being in a hover state.
Badges can optionally be disabled.
Badges can have text, an Icon, or both. The Icon can appear on either side of the text if both are present.
Notes
None
The text was updated successfully, but these errors were encountered:
Story
As a user, I want to see colored labels for items belonging to a group, collection, or class.
Description
Create a React component,
Badge
, that can be configured to appear in all of the styles shown in the Figma file for Shipfaster UI.Badge
should be located in the shared component library. Note that this may, though does not necessarily have to, involve adding color definitions topackages/tailwind-config/tailwind.config.js
.Acceptance Criteria
Badge
s can have asize
of either'sm'
,'md'
, or'lg'
.Badge
s can have atype
of either'primary'
,'neutral'
,'success'
,'warning'
, or'danger'
.Badge
s can have anappearance
of either'filled'
,'accent'
, or'outlined'
.Badge
s can optionally visually respond to being in ahover
state.Badge
s can optionally bedisabled
.Badge
s can havetext
, anIcon
, or both. TheIcon
can appear on either side of thetext
if both are present.Notes
None
The text was updated successfully, but these errors were encountered: