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.
Type Parameters
Section titled “Type Parameters”Msg
C extends Children<Msg, any>
Parameters
Section titled “Parameters”H<Msg>
options
Section titled “options”ButtonOptions<Msg, C>
Returns
Section titled “Returns”ContainerBuilder<Msg, Requirements<C>, { click: DiscordInteraction; }, BotNode, "button">