Color Picker
An enterprise-level color picker component that supports multiple formats, opacity adjustment, and seamless integration with BrFormItem.
Component Features
- 🎨 Multiple Color Formats: Supports HEX, RGB, RGBA, HSL, HSLA color format input and display.
- 🔘 Alpha Channel: Supports alpha/opacity adjustment.
- 🎨 Preset Colors: Built-in preset color palette for quick selection.
- 📐 Inline & Popover: Supports inline display and popover trigger modes.
- 📝 Form Integration: Supports seamless integration with
BrFormItemandvee-validate. - 🎨 Theme Customization: Based on
BrConfigProviderfor global theming and TailwindCSS local overrides.
Provides basic color selection capabilities.
Preset Colors
You can provide an array of commonly used preset colors for quick selection.
Format & Opacity
Supports opacity adjustment and switching between multiple formats such as hex, rgba, hsla, etc.
Inline Mode
In addition to the default popover mode, it also supports displaying the color picker panel directly inline.
Form Integration
Seamlessly integrates with BrFormItem, supporting color value binding and validation state synchronization.
Theming
Combined with BrConfigProvider, you can easily achieve global and local theme style customization.