Yamada UIにスターをあげる

スター
Yamada UIYamada UIv1.6.3

Button

Buttonは、フォームの送信、モーダルの開閉など、ユーザーが操作できるインタラクティブなコンポーネントです。

ソース@yamada-ui/button

Props

ButtonProps

colorScheme

説明

The visual color appearance of the component.

タイプ

"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"

デフォルト

"gray"

disableRipple

説明

If true, disable ripple effects when pressing a element.

タイプ

boolean

デフォルト

false

isActive

説明

If true, the button is represented as active.

タイプ

boolean

デフォルト

false

isDisabled

説明

If true, the button is disabled.

タイプ

boolean

デフォルト

false

isLoading

説明

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

タイプ

boolean

デフォルト

false

isRounded

説明

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

タイプ

boolean

デフォルト

false

leftIcon

説明

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

タイプ

ReactElement<any, string | JSXElementConstructor<any>>

loadingIcon

説明

The icon to display when the button is loading.

タイプ

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

loadingPlacement

説明

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

タイプ

"end" | "start"

デフォルト

'start'

loadingText

説明

The text to display when the button is loading.

タイプ

string

rightIcon

説明

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

タイプ

ReactElement<any, string | JSXElementConstructor<any>>

size

説明

The size of the Button.

タイプ

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

デフォルト

"md"

variant

説明

The variant of the Button.

タイプ

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

デフォルト

"solid"

ButtonGroupProps

direction

説明

The CSS flex-direction property.

タイプ

"-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

説明

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

タイプ

boolean

デフォルト

false

isDisabled

説明

If true, all wrapped button will be disabled.

タイプ

boolean

デフォルト

false

GitHubでこのページを編集する

FieldsetIconButton