BetaPublic beta — Read the release notes
Documentation

Button

Clickable trigger for actions.

Package
@solidiom/button
Version
0.0.1-next.0
Status
stable

Generated from the package's public source.

API

ButtonGroupcomponent

                        ButtonGroup(props: ButtonGroupProps): Element
                      

Props

class?
string
orientation?
"horizontal" | "vertical" — Orientation of the group layout.

children: Element

View source

ButtonGroupPropsinterface

Props

class?
string
orientation?
"horizontal" | "vertical" — Orientation of the group layout.

children: Element

View source

ButtonPropsinterface

Props

aria-label?
string
class?
string
disabled?
boolean
loading?
boolean
onClick?
() => void
type?
"button" | "submit" | "reset"

children: Element

View source

IconButtoncomponent

                        IconButton(props: IconButtonProps): Element
                      

Props

aria-label
string — Required accessible label since the button has no visible text.
class?
string
disabled?
boolean
loading?
boolean
onClick?
() => void
type?
"button" | "submit" | "reset"

children: Element

View source

IconButtonPropsinterface

Props

aria-label
string — Required accessible label since the button has no visible text.
class?
string
disabled?
boolean
loading?
boolean
onClick?
() => void
type?
"button" | "submit" | "reset"

children: Element

View source

Rootcomponent

                        Root(props: ButtonProps): Element
                      

Props

aria-label?
string
class?
string
disabled?
boolean
loading?
boolean
onClick?
() => void
type?
"button" | "submit" | "reset"

children: Element

View source

ToggleButtoncomponent

                        ToggleButton(props: ToggleButtonProps): Element
                      

Props

class?
string
disabled?
boolean
loading?
boolean
onPressedChange?
(pressed: boolean) => void — Called when the pressed state should change.
pressed
boolean — Whether the toggle is currently pressed/active.

children: Element

View source

ToggleButtonPropsinterface

Props

class?
string
disabled?
boolean
loading?
boolean
onPressedChange?
(pressed: boolean) => void — Called when the pressed state should change.
pressed
boolean — Whether the toggle is currently pressed/active.

children: Element

View source