braid-design-system@32.22.0
Minor Changes
-
Column: Add support for hide above/below breakpoint (#1553)
Introduce new
hideAboveandhideBelowprops 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
Badgecan now be nested inside typographic components, e.g.TextandHeading, as an inline element alongside text.
Previously aBadgehad to be aligned against text using anInlinecomponent, which would result in theBadgedropping below the text when the copy wrapped.EXAMPLE USAGE:
<Text> Lorem ipsum velit in <Badge>amet</Badge>. </Text>
-
Tabs: Add
sizesupport (#1550)Introduces the ability to customise the
sizeof theTabcomponents 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
Spreadcomponent 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
verticalvia thedirectionprop:<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
badgeslot inside label (#1547)Relocate the
badgeslot inside thelabelslot enabling theBadgeto sit alongside the last word in wrapping lines of text.