Tree component
New Tree component:
- src
- node_modules
- package.json
- tsconfig.json
form.getInputNode
New form.getInputNode(path)
handler returns input DOM node for the given field path.
Form example, it can be used to focus input on form submit if there is an error:
Container queries in SimpleGrid
You can now use container queries in SimpleGrid component. With container queries, grid columns and spacing will be adjusted based on the container width, not the viewport width.
Example of using container queries. To see how the grid changes, resize the root element of the demo with the resize handle located at the bottom right corner of the demo:
Checkbox and Radio indicators
New Checkbox.Indicator and Radio.Indicator
components look exactly the same as Checkbox
and Radio
components, but they do not
have any semantic meaning, they are just visual representations of checkbox and radio states.
Checkbox.Indicator
component:
Radio.Indicator
component:
Checkbox and Radio cards
New Checkbox.Card and Radio.Card
components can be used as replacements for Checkbox
and Radio
to build custom cards/buttons/etc.
that work as checkboxes and radios. Components are accessible by default and support the same
keyboard interactions as input[type="checkbox"]
and input[type="radio"]
.
Checkbox.Card
component:
Checkbox.Card
component with Checkbox.Group
:
Choose all packages that you will need in your application
CurrentValue: –
Radio.Card
component:
Radio.Card
component with Radio.Group
:
Choose a package that you will need in your application
CurrentValue: –
bd style prop
New bd style prop can be used to set border
CSS property.
It is available in all components that support style props.
Border width value is automatically converted to rem. For border color you can reference theme colors similar to other style props: