BRAID
Braid Design System
⌘
K
Guides
Foundations
Components
Patterns
Styles
Foundations
Layout
Tones
Iconography
Tokens
Breakpoints
IconCompany
Details
Details
Props
Props
Releases
Releases
INACTIVE
ACTIVE
View code
Code
Open in
Playroom
Toggling active state
The icon can be marked as active using the
active
prop.
(Click icon above to toggle active state)
View code
Code
Open in
Playroom
Tailoring the appearance
For details about tailoring the appearance of icons see the
iconography documentation
.
Data attributes
Braid components are very explicit about the properties they accept, which makes providing arbitrary
data attributes
not possible. Instead, a
data
prop can be provided as a single collection of data attributes.
<
Icon
data
=
{
{
testid
:
'icon-1'
}
}
// => data-testid="icon-1"
/>
Copy
On this page
Toggling active state
Tailoring the appearance
Data attributes
BRAID
Braid Design System
⌘
K
Guides
Foundations
Components
Patterns
Styles