MCPcopy
hub / github.com/maxchehab/phelia / ButtonBase

Interface ButtonBase

src/core/components.tsx:74–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72};
73
74interface ButtonBase {
75 /** The text inside the button. */
76 children: string;
77 /**
78 * A Confirm component that defines an optional confirmation dialog
79 * after the button is clicked.
80 */
81 confirm?: ReactElement;
82 /**
83 * Indicates whether emojis in the button should be escaped into the colon emoji format.
84 */
85 emoji?: boolean;
86 /** Decorates buttons with alternative visual color schemes. Use this option with restraint. */
87 style?: undefined | "danger" | "primary";
88 /**
89 * A URL to load in the user's browser when the button is clicked.
90 * Maximum length for this field is 3000 characters. If you're using
91 * url, you'll still receive an interaction payload and will need to
92 * send an acknowledgement response.
93 */
94 url?: string;
95}
96
97interface ButtonWithOnClick extends ButtonBase {
98 /** A callback ran when the button is clicked */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected