Rate
Enterprise-level rating component based on BrConfigProvider for global theme configuration. It supports half stars, custom icons, read-only state, and seamless integration with BrFormItem.
Component Features
- ⭐ Half-Star Support: Supports
allow-halfprop for half-star precision. - 🔢 Custom Count: Configurable star count via
countprop. - 🖼️ Custom Icons: Supports custom icons via
characterslot. - 🌈 Segmented Colors: Supports segmented color for different rating ranges.
- 📝 Helper Text: Supports helper text display.
- ❌ Clearable: Supports
allow-clearprop to clear the rating. - 📝 Form Integration: Supports seamless integration with
BrFormItemandvee-validate. - 🎨 Theme Customization: Based on
BrConfigProviderfor global theming and TailwindCSS local overrides.
The most basic usage of the Rate component.
Half Star
Supports half-star ratings, enabled via the allow-half attribute.
Custom Icon and Count
You can customize the icons and the maximum rating count.
Readonly and Disabled
Theme Customization
BrRate seamlessly integrates with BrFormItem and supports global theme configuration via BrConfigProvider.
API
BrRate Props
BrRate Emits
BrRateItem Props (Internal Item Component)
Usually not used directly, exposed for deep customization.