Documentation Index
Fetch the complete documentation index at: https://mintlify.com/betterdiscord/betterdiscord/llms.txt
Use this file to discover all available pages before exploring further.
BdApi.Components provides a collection of React components that plugins can use to create consistent and polished user interfaces. These components follow Discord’s design patterns and integrate seamlessly with BetterDiscord’s settings system.
Component categories
BetterDiscord components are organized into three main categories:Settings components
Components designed for building settings panels and configuration interfaces:- ColorInput - Color picker with swatches
- DropdownInput - Dropdown select menu
- KeybindInput - Keybind recorder
- NumberInput - Number input with increment/decrement buttons
- RadioInput - Radio button group
- SearchInput - Search bar with clear button
- SliderInput - Slider with markers and units
- SwitchInput - Toggle switch
- TextInput - Text input field
- SettingItem - Container for individual settings
- SettingGroup - Collapsible group of settings
UI elements
General-purpose components for building interfaces:- Text - Styled text with color and size variants
- Flex - Flexbox container with alignment utilities
- Button - Button with multiple styles and colors
- Spinner - Loading spinner with animation types
- Tooltip - Discord’s tooltip component for hover tips
- ErrorBoundary - Error boundary for catching React errors
Basic usage
All components are accessed throughBdApi.Components:
Common patterns
Building settings panels
UseSettingItem to wrap individual settings with labels and descriptions:
Using SettingGroup
Group related settings together with collapsible sections:Error boundaries
Wrap components in an ErrorBoundary to handle errors gracefully:Next steps
- Explore Settings components for building configuration interfaces
- Learn about UI elements for general interface building
- See the UI namespace for additional UI utilities