Leave Yamada UI a star

Star
Yamada UIYamada UIv1.6.4

Button

Button is an interactive component that allows users to perform actions such as submitting forms and toggling modals.

Source@yamada-ui/button

Props

ButtonProps

colorScheme

Description

The visual color appearance of the component.

Type

"blackAlpha" | "whiteAlpha" | "amber" | "blue" | "info" | "link" | "primary" | "cyan" | "emerald" | "flashy" | "fuchsia" | "gray" | "green" | "success" | "indigo" | "lime" | "neutral" | "orange" | "warning" | "pink" | "purple" | "red" | "danger" | "rose" | "sky" | "teal" | "violet" | "secondary" | "yellow"

Default

"gray"

disableRipple

Description

If true, disable ripple effects when pressing a element.

Type

boolean

Default

false

endIcon

Description

The icon to display at the end side of the button.

Type

ReactElement<any, string | JSXElementConstructor<any>>

isActive

Description

If true, the button is represented as active.

Type

boolean

Default

false

isDisabled

Description

If true, the button is disabled.

Type

boolean

Default

false

isLoading

Description

If true, the loading state of the button is represented.

Type

boolean

Default

false

isRounded

Description

If true, the button is full rounded. Else, it'll be slightly round.

Type

boolean

Default

false

leftIcon

Deprecated

Description

The icon to display at the left side of the button.

Deprecated

Use startIcon instead.

Type

ReactElement<any, string | JSXElementConstructor<any>>

loadingIcon

Description

The icon to display when the button is loading.

Type

type ONLY_FOR_FORMAT = | "grid" | ReactElement<any, string | JSXElementConstructor<any>> | "audio" | "circles" | "dots" | "oval" | "puff" | "rings"

loadingPlacement

Description

The placement of the loading indicator. Accepts start or end.

Type

"end" | "start"

Default

'start'

loadingText

Description

The text to display when the button is loading.

Type

string

rightIcon

Deprecated

Description

The icon to display at the right side of the button.

Deprecated

Use endIcon instead.

Type

ReactElement<any, string | JSXElementConstructor<any>>

size

Description

The size of the Button.

Type

"xs" | "sm" | "md" | "lg" | "xl" | "2xl"

Default

"md"

startIcon

Description

The icon to display at the start side of the button.

Type

ReactElement<any, string | JSXElementConstructor<any>>

variant

Description

The variant of the Button.

Type

"ghost" | "link" | "outline" | "solid" | "subtle" | "surface" | "unstyled"

Default

"solid"

ButtonGroupProps

direction

Description

The CSS flex-direction property.

Type

"-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "column" | "column-reverse" | "row" | "row-reverse" | [FlexDirection | { [x: string]: FlexDirection | undefined; ... 5 more ...; xl?: FlexDirection | undefined; }, FlexDirection | { ...; }] | { ...; } | [...] | { ...; } | ((theme: StyledT...

isAttached

Description

If true, the borderRadius of button that are direct children will be altered to look flushed together.

Type

boolean

Default

false

isDisabled

Description

If true, all wrapped button will be disabled.

Type

boolean

Default

false

Edit this page on GitHub

PreviousFieldsetNextIconButton