Components / Inputs
ButtonGroup
Joins secondary Buttons or IconButtons into one bar.
import { ButtonGroup } from "@stylhero/ui";
Example
Code
import { Button, ButtonGroup } from "@stylhero/ui";
function ButtonGroupExample() {
return (
<ButtonGroup aria-label="Text alignment">
<Button variant="secondary">Left</Button>
<Button variant="secondary">Center</Button>
<Button variant="secondary">Right</Button>
</ButtonGroup>
);
}
Props
No props of its own.
Also takes every <div> attribute (id, style, data-*, aria-*, event handlers…), passed to that element.
Generated from src/components/ButtonGroup.tsx. Something wrong or missing? Open an issue.