BRAID
Braid Logo
Resources
Releases
Gallery
Playroom
GitHub
Guides
Design Workflow
Development Workflow
Playroom Prototyping
Contribution
Testing Guide
Foundations
Layout
Tones
Iconography
Examples
Job Summary
Basic Form
Marketing Banner
Components
Accordion
Actions
Alert
Autosuggest
Badge
Bleed
Box
Button
ButtonIcon
ButtonLink
Card
Checkbox
Columns
ContentBlock
Dialog
Disclosure
Divider
Drawer
Dropdown
FieldLabel
FieldMessage
Heading
Hidden
HiddenVisually
Inline
List
Loader
MenuItem
MenuItemCheckbox
MenuItemDivider
MenuRenderer
MonthPicker
Notice
OverflowMenu
Page
PageBlock
Pagination
PasswordField
Radio
Deprecated
RadioGroup
Rating
Secondary
Spread
New
Stack
Stepper
Strong
Tabs
New
Tag
Text
TextDropdown
TextField
TextLink
TextLinkButton
Textarea
Tiles
Toggle
TooltipRenderer
useToast
CSS
atoms
breakpoints
globalHeadingStyle
globalTextStyle
responsiveStyle
vars
Logic
BraidPortal
BraidProvider
BraidTestProvider
Link
ThemeNameConsumer
useBreakpoint
Deprecated
useColor
useResponsiveValue
useSpace
useThemeName
Tag
Details
Details
Props
Props
Releases
Releases
Snippets
Snippets
One
Two
Three
View code
Code
Open in
Playroom
Alternatives
Badge
— For static labels.
Sizes
You can customise the size of the tag via the
size
prop, which accepts either
standard
or
small
.
STANDARD
One
Two
Three
SMALL
One
Two
Three
View code
Code
Open in
Playroom
Actionable tags
Tags can be made actionable to support either being “cleared” or “added”.
By providing an
onClear
handler and a
clearLabel
, a
ButtonIcon
component with a clear icon will be added to the right of the tag label.
Alternatively, providing an
onAdd
handler and an
addLabel
will insert a
ButtonIcon
component with an add icon to the right of the tag label.
Translation hint
The
aria-label
for the button can be customised by providing the relevant
clearLabel
or
addLabel
prop.
ADDABLE
Four
Five
CLEARABLE
One
Two
Three
View code
Code
Open in
Playroom
Inserting an icon
For decoration or help distinguishing between tags, an
icon
can be provided. This will be placed to the left of the text.
One
Two
Three
View code
Code
Open in
Playroom
BRAID
Braid Logo