Button
Change anything and watch the Button follow. The code under the canvas is always the one for what you see.
import { Button } from "@orvain/ui-react"; <Button intent="neutral">Button Label</Button>Content
Left icon
Right icon
Style
IntentNeutral
Variant
Size
Corners16px
State
Properties#
PropTypeDefaultDescription
variant"primary" | "secondary" | "tertiary""primary"The level of emphasis.
intent"brand" | "neutral" | "success" | "warning" | "error" | "inverseOnDark""brand"The colour, matched to what the action does.
size"xxs" | "xs" | "sm" | "md" | "lg" | "xl""lg"Height, padding, radius and type size together.
pillbooleanfalseFully rounded ends.
iconOnlybooleanfalseA square button with one icon. Needs aria-label.
leftIconbooleantrueShow the icon before the label.
rightIconbooleantrueShow the icon after the label.
swapLeftIconReactNode—Replace the left icon.
swapRightIconReactNode—Replace the right icon.
swapSoloIconReactNode—Replace the icon of an icon-only button.
loadingbooleanfalseShows a spinner, sets aria-busy and disables the button.
disabledbooleanfalseInert and removed from the tab order.
childrenReactNode—The label.
