Badge
Loading...
import { Badge } from "@nudge-coach/ui";
Overview
Highlights notable updates.
Props
Children
React.ReactNode
Inject text or icons to be featured in the Badge.
warning
A boolean
that indicates this badge should serve as a warning to the user.
Loading...
<Badge warning>!</Badge>
success
A boolean
that indicates this badge symbolizes a successful action.
Loading...
<Badge success>
<Check />
</Badge>
word
A boolean
that updates the border radius to better fit words.
Loading...
<Badge word>NEW</Badge>