Skip to content

Interface: ButtonSetting ​

Extends ​

Properties ​

buttonRef? ​

optional buttonRef?: RefObject<HTMLButtonElement | null>

Inherited from ​

ButtonProps.buttonRef


children? ​

optional children?: ReactNode

Inherited from ​

ButtonProps.children


className? ​

optional className?: string

Inherited from ​

ButtonProps.className


color? ​

optional color?: "" | "bd-button-color-brand" | "bd-button-color-blurple" | "bd-button-color-red" | "bd-button-color-green" | "bd-button-color-yellow" | "bd-button-color-primary" | "bd-button-color-link" | "bd-button-color-white" | "bd-button-color-transparent"

Inherited from ​

ButtonProps.color


defaultValue? ​

optional defaultValue?: unknown

A value to use if no value is provided

Inherited from ​

BaseSettingItem.defaultValue


disabled? ​

optional disabled?: boolean

Whether this setting is disabled

Inherited from ​

ButtonProps.disabled


disableWith? ​

optional disableWith?: string

The id of another setting that disables this setting

Inherited from ​

BaseSettingItem.disableWith


enableWith? ​

optional enableWith?: string

The id of another setting that is required to use this one

Inherited from ​

BaseSettingItem.enableWith


grow? ​

optional grow?: boolean

Inherited from ​

ButtonProps.grow


hidden? ​

optional hidden?: boolean

Whether the setting should be hidden

Inherited from ​

BaseSettingItem.hidden


id ​

id: string

An identifier used for callbacks

Inherited from ​

BaseSettingItem.id


inline? ​

optional inline?: boolean

Whether the input should render inline with the name (this is false by default for radio type)

Inherited from ​

BaseSettingItem.inline


look? ​

optional look?: "bd-button-filled" | "bd-button-outlined" | "bd-button-link" | "bd-button-blank"

Inherited from ​

ButtonProps.look


name? ​

optional name?: string

The visual name to display

Inherited from ​

BaseSettingItem.name


note? ​

optional note?: string

The visual description to display

Inherited from ​

BaseSettingItem.note


onClick? ​

optional onClick?: MouseEventHandler<HTMLButtonElement>

Inherited from ​

ButtonProps.onClick


onKeyDown? ​

optional onKeyDown?: KeyboardEventHandler<HTMLButtonElement>

Inherited from ​

ButtonProps.onKeyDown


size? ​

optional size?: "" | "bd-button-tiny" | "bd-button-small" | "bd-button-medium" | "bd-button-large" | "bd-button-icon"

Inherited from ​

ButtonProps.size


type ​

type: "button"

Overrides ​

ButtonProps.type