braid-design-system@32.22.0
Minor Changes
-
Column: Add support for hide above/below breakpoint (#1553)
Introduce new
hideAbove
andhideBelow
props on column for responsively hiding columns across breakpoint.These props can be used either separately or in combination to optimise content display across different screen sizes.
EXAMPLE USAGE:
<Columns space="small"> <Column> <Placeholder height={60} label="Always visible" /> </Column> <Column hideBelow="tablet"> <Placeholder height={60} label="Tablet and above" /> </Column> <Column hideAbove="mobile"> <Placeholder height={60} label="Mobile Only" /> </Column> </Columns>
-
Badge: Enable usage inside typographic components (#1547)
A
Badge
can now be nested inside typographic components, e.g.Text
andHeading
, as an inline element alongside text.
Previously aBadge
had to be aligned against text using anInline
component, which would result in theBadge
dropping below the text when the copy wrapped.EXAMPLE USAGE:
<Text> Lorem ipsum velit in <Badge>amet</Badge>. </Text>
-
Tabs: Add
size
support (#1550)Introduces the ability to customise the
size
of theTab
components in the tab list.
Available sizes arestandard
(default) andsmall
.EXAMPLE USAGE:
<Tabs size="small"> <Tab>First tab</Tab> <Tab>Second tab</Tab> <Tab>Third tab</Tab> </Tabs>
-
Spread: Add new layout component (#1554)
Introduce a new layout component,
Spread
, used to justify content with both an equally distributed and a specified minimum amount of space in between each child.EXAMPLE USAGE:
The
Spread
component works horizontally by default:<Spread space="small" alignY="center"> <Heading level="4">Heading</Heading> <OverflowMenu label="Options"> <MenuItem>First</MenuItem> <MenuItem>Second</MenuItem> </OverflowMenu> </Spread>
But can be switched to
vertical
via thedirection
prop:<Spread space="large" direction="vertical"> <Stack space="small"> <Heading level="4">Heading</Heading> <Text>Text</Text> </Stack> <Text size="small" tone="secondary"> Date </Text> </Spread>
Patch Changes
-
Move
badge
slot inside label (#1547)Relocate the
badge
slot inside thelabel
slot enabling theBadge
to sit alongside the last word in wrapping lines of text.