Skip to main content
Version: Next

ButtonProps

ButtonProps

The button props

Signature
interface ButtonProps {
label?: string;
style?: ButtonStyle;
emoji?: ComponentEmojiResolvable;
disabled?: boolean;
customId?: string;
url?: string;
skuId?: string;
onClick?: CommandKitButtonBuilderInteractionCollectorDispatch;
onError?: EventInterceptorErrorHandler;
options?: CommandKitButtonBuilderInteractionCollectorDispatchContextData;
onEnd?: CommandKitButtonBuilderOnEnd;
children?: MaybeArray<ButtonChildrenLike>;
}

label

property
string

style

property
ButtonStyle

emoji

property
ComponentEmojiResolvable

disabled

property
boolean

customId

property
string

url

property
string

skuId

property
string

onClick

onError

options

onEnd

children