F
registerDesignFallback
Registers the component the design module returns when a Discord build lacks the named one or ships something React can't render.
function registerDesignFallback<K extends "Text" | "TextInput" | "Button" | "RowButton" | "TableRow" | "TableRadioRow" | "TableSwitchRow" | "TableCheckboxRow" | "ActionSheet" | "ActionSheetRow" | "AlertActionButton" | "AlertModal" | "Badge" | "Card" | "Checkbox" | "ContextMenu" | "FloatingActionButton" | "FormSwitch" | "GhostInput" | "Heading" | "IconButton" | "ImageButton" | "RowGroup" | "SearchBar" | "SearchField" | "SegmentedControl" | "SegmentedControlPages" | "Slider" | "SplitTextInput" | "Stack" | "TableRadioGroup" | "TableRowGroup" | "TableRowGroupTitle" | "TableRowIcon" | "TextArea" | "TextAreaField" | "TextField">(name: K, component: DesignModule[K]): voidParameters
| Name | Type | Description |
|---|---|---|
| name | K | The design component to stand in for. |
| component | DesignModule[K] | The fallback. |
Returns
void