Skip to content

Button

Button<Msg, C>(h, options): ContainerBuilder<Msg, Requirements<C>, { click: DiscordInteraction; }, BotNode, "button">

Defined in: packages/platform-discord/src/components/button.ts:21

An interactive button.

A button is a pure element builder, not a headless component: a section accessory has to be an element, and a builder can be used inline anywhere.

Msg

C extends Children<Msg, any>

H<Msg>

ButtonOptions<Msg, C>

ContainerBuilder<Msg, Requirements<C>, { click: DiscordInteraction; }, BotNode, "button">