Class: Components
Components is a utility containing commonly used React components. An instance is available on BdApi.
Properties
Button
Button: typeof
Button
ColorInput
ColorInput: (
props) =>Element
Parameters
| Parameter | Type |
|---|---|
props | ColorpickerProps |
Returns
Element
DropdownInput
DropdownInput: (
props) =>Element
Parameters
| Parameter | Type |
|---|---|
props | SelectProps |
Returns
Element
ErrorBoundary
ErrorBoundary: typeof
ErrorBoundary
Flex
Flex: typeof
Flex
KeybindInput
KeybindInput: (
props) =>Element
Parameters
| Parameter | Type |
|---|---|
props | KeybindProps |
Returns
Element
NumberInput
NumberInput: (
props) =>Element
Parameters
| Parameter | Type |
|---|---|
props | NumberInputProps |
Returns
Element
RadioInput
RadioInput: (
props) =>Element
Parameters
| Parameter | Type |
|---|---|
props | RadioProps |
Returns
Element
SearchInput
SearchInput: (
props) =>Element
Parameters
| Parameter | Type |
|---|---|
props | SearchProps |
Returns
Element
SettingGroup
SettingGroup: (
props) =>Element
Parameters
| Parameter | Type |
|---|---|
props | GroupProps |
Returns
Element
SettingItem
SettingItem: (
props) =>Element
Parameters
| Parameter | Type |
|---|---|
props | SettingItemProps |
Returns
Element
SliderInput
SliderInput: (
props) =>Element
Parameters
| Parameter | Type |
|---|---|
props | SliderProps |
Returns
Element
Spinner
Spinner: {(
props):Element;Type:Readonly<{CHASING_DOTS:"chasing-dots";LOW_MOTION:"low-motion";PULSING_ELLIPSIS:"pulsing-ellipsis";SPINNING_CIRCLE:"spinning-circle";SPINNING_CIRCLE_SIMPLE:"spinning-circle-simple";WANDERING_CUBES:"wandering-cubes"; }>; }
Clone of Discord's builtin spinner, acts 100% the same.
Parameters
| Parameter | Type |
|---|---|
props | SpinnerProps |
Returns
Element
Type
Type:
Readonly<{CHASING_DOTS:"chasing-dots";LOW_MOTION:"low-motion";PULSING_ELLIPSIS:"pulsing-ellipsis";SPINNING_CIRCLE:"spinning-circle";SPINNING_CIRCLE_SIMPLE:"spinning-circle-simple";WANDERING_CUBES:"wandering-cubes"; }>
SwitchInput
SwitchInput: (
props) =>Element
Parameters
| Parameter | Type |
|---|---|
props | SwitchProps |
Returns
Element
Text
Text: typeof
Text
TextInput
TextInput: (
props) =>Element
Parameters
| Parameter | Type |
|---|---|
props | TextboxProps |
Returns
Element
Tooltip
Tooltip:
DiscordTooltip