Actions
Button
A button in six variants and four sizes. While it loads, it keeps its size: the label stays in the layout, hidden, under a spinner.
Actions
A button in six variants and four sizes. While it loads, it keeps its size: the label stays in the layout, hidden, under a spinner.
Change the props on the right. The button and its code follow.
import { Button } from 'omuk-ui/button';
<Button>Save</Button>One primary button for each surface. Outline for the other actions of a form or a dialog, ghost in toolbars and menus. Destructive offers a delete; danger-confirm is only the last step of one.
With isLoading, the label stays in the layout, hidden, and a spinner sits over it: the button keeps its exact size. loadingLabel is what a screen reader hears meanwhile. Press Save changes.
32 tall by default, like every field, so a button and an input line up. Large is 36. Extra small (24) is for row actions in a dense table only.
Mark the icon with data-icon: the padding on that side drops one step, so the text and the icon look centred.
render draws the button as another element and keeps its look. Set nativeButton to false when that element is not a <button>.
And every prop of a <button>.