Button
Clickable trigger for actions.
Generated from the package's public source.
API
ButtonGroupcomponent
ButtonGroup(props: ButtonGroupProps): Element
Props
class?stringorientation?"horizontal" | "vertical"— Orientation of the group layout.
children: Element
ButtonGroupPropsinterface
Props
class?stringorientation?"horizontal" | "vertical"— Orientation of the group layout.
children: Element
ButtonPropsinterface
Props
aria-label?stringclass?stringdisabled?booleanloading?booleanonClick?() => voidtype?"button" | "submit" | "reset"
children: Element
IconButtoncomponent
IconButton(props: IconButtonProps): Element
Props
aria-labelstring— Required accessible label since the button has no visible text.class?stringdisabled?booleanloading?booleanonClick?() => voidtype?"button" | "submit" | "reset"
children: Element
IconButtonPropsinterface
Props
aria-labelstring— Required accessible label since the button has no visible text.class?stringdisabled?booleanloading?booleanonClick?() => voidtype?"button" | "submit" | "reset"
children: Element
Rootcomponent
Root(props: ButtonProps): Element
Props
aria-label?stringclass?stringdisabled?booleanloading?booleanonClick?() => voidtype?"button" | "submit" | "reset"
children: Element
ToggleButtoncomponent
ToggleButton(props: ToggleButtonProps): Element
Props
class?stringdisabled?booleanloading?booleanonPressedChange?(pressed: boolean) => void— Called when the pressed state should change.pressedboolean— Whether the toggle is currently pressed/active.
children: Element
ToggleButtonPropsinterface
Props
class?stringdisabled?booleanloading?booleanonPressedChange?(pressed: boolean) => void— Called when the pressed state should change.pressedboolean— Whether the toggle is currently pressed/active.
children: Element