Custom CSS classes for different parts of the BitRating.
DefaultValue
double?
null
Default rating. Must be a number between min and max. Only provide this if the Rating is an uncontrolled component; otherwise, use the rating property.
GetAriaLabel
Func<double, double, string>?
null
Optional callback to set the aria-label for rating control in readOnly mode. Also used as a fallback aria-label if ariaLabel prop is not provided.
Max
int
5
Maximum rating. Must be >= min (0 if AllowZeroStars is true, 1 otherwise).
Whether the component is visible, hidden or collapsed.
BitComponentBase public members
Name
Type
Default value
Description
UniqueId
Guid
Guid.NewGuid()
The readonly unique id of the root element. it will be assigned to a new Guid at component instance construction.
RootElement
ElementReference
The ElementReference of the root element.
BitRatingClassStyles properties
Name
Type
Default value
Description
Root
string?
null
Custom CSS classes/styles for the root element of the rating.
Button
string?
null
Custom CSS classes/styles for the rating's button.
IconContainer
string?
null
Custom CSS classes/styles for the rating icon container.
SelectedIcon
string?
null
Custom CSS classes/styles for the rating selected icon.
UnselectedIcon
string?
null
Custom CSS classes/styles for the rating unselected icon.
BitSize enum
Name
Value
Description
Small
0
Display rating icon using small size.
Medium
1
Display rating icon using medium size.
Large
2
Display rating icon using large size.
BitVisibility enum
Name
Value
Description
Visible
0
The content of the component is visible.
Hidden
1
The content of the component is hidden, but the space it takes on the page remains (visibility:hidden).
Collapsed
2
The component is hidden (display:none).
BitDir enum
Name
Value
Description
Ltr
0
Ltr (left to right) is to be used for languages that are written from the left to the right (like English).
Rtl
1
Rtl (right to left) is to be used for languages that are written from the right to the left (like Arabic).
Auto
2
Auto lets the user agent decide. It uses a basic algorithm as it parses the characters inside the element until it finds a character with a strong directionality, then applies that directionality to the whole element.