Yamada UIにスターをあげる

スター
Yamada UIYamada UIv1.5.1

Button

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

ソース@yamada-ui/button

Props

ButtonProps

colorScheme

説明

The visual color appearance of the component.

タイプ

"whiteAlpha" | "blackAlpha" | "gray" | "neutral" | "red" | "rose" | "pink" | "flashy" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia"

デフォルト

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 = | "audio" | "grid" | ReactElement<any, string | JSXElementConstructor<any>> | "oval" | "dots" | "puff" | "rings" | "circles"

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"

デフォルト

md

variant

説明

The variant of the Button.

タイプ

"solid" | "outline" | "link" | "ghost" | "unstyled"

デフォルト

solid

ButtonGroupProps

direction

説明

The CSS flex-direction property.

タイプ

"-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "column" | "column-reverse" | "row" | "row-reverse" | Partial<Record<"base" | (string & {}) | "sm" | "md" | "lg" | "xl" | "2xl", FlexDirection>> | ColorModeArray<...> | Partial<...> | ColorModeArray<...> | ((theme: StyledTheme) => UIValue...

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