Icon for selected rating elements using external icon libraries (e.g. FontAwesome, Bootstrap Icons). Takes precedence over SelectedIconName when both are set.
SelectedIconName
string?
FavoriteStarFill
Custom icon name for selected rating elements (Fluent UI). For external icon libraries, use SelectedIcon instead.
Icon for unselected rating elements using external icon libraries (e.g. FontAwesome, Bootstrap Icons). Takes precedence over UnselectedIconName when both are set.
UnselectedIconName
string?
FavoriteStar
Custom icon name for unselected rating elements (Fluent UI). For external icon libraries, use UnselectedIcon instead.
BitInputBase parameters
Name
Type
Default value
Description
DefaultValue
TValue?
null
The default value of the input to be used in uncontrolled mode (i.e. when the Value is not bound), typically used alongside the OnChange callback.
DisplayName
string?
null
Gets or sets the display name for this field.
InputHtmlAttributes
IReadOnlyDictionary<string, object>?
null
Gets or sets a collection of additional attributes that will be applied to the created element.
Name
string?
null
Gets or sets the name of the element. Allows access by name from the associated form.
NoValidate
bool
false
Disables the validation of the input.
OnChange
EventCallback<TValue?>
Callback for when the input value changes.
ReadOnly
bool
false
Makes the input read-only.
Required
bool
false
Makes the input required.
Value
TValue?
null
Gets or sets the value of the input. This should be used with two-way binding.
BitInputBase public members
Name
Type
Default value
Description
InputElement
ElementReference
The ElementReference of the input element.
FocusAsync()
() => ValueTask
Gives focus to the input element.
FocusAsync(bool preventScroll)
(bool preventScroll) => ValueTask
Gives focus to the input element.
BitComponentBase parameters
Name
Type
Default value
Description
AriaLabel
string?
null
Gets or sets the accessible label for the component, used by assistive technologies.
Class
string?
null
Gets or sets the CSS class name(s) to apply to the rendered element.
Gets or sets the visibility state (visible, hidden, or collapsed) of the component.
BitComponentBase public members
Name
Type
Default value
Description
UniqueId
Guid
Guid.NewGuid()
Gets the readonly unique identifier for the component's root element, assigned when the component instance is constructed.
RootElement
ElementReference
Gets the reference to the root HTML element associated with this component.
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.
BitIconInfo properties
Represents icon information for rendering icons. Supports built-in Fluent UI icons and external icon libraries (FontAwesome, Bootstrap Icons, etc.). Use BitIconInfo.Css("fa-solid fa-star"), BitIconInfo.Fa("solid star"), or BitIconInfo.Bi("star-fill") for external icons.
Name
Type
Default value
Description
Name
string?
null
Gets or sets the name of the icon.
BaseClass
string?
null
Gets or sets the base CSS class for the icon. For external icon libraries like FontAwesome, you might set this to "fa" or leave empty.
Prefix
string?
null
Gets or sets the CSS class prefix used before the icon name. For external icon libraries, you might set this to "fa-" or leave empty.
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.
Feedback
You can give us your feedback through our
GitHub repo
by filing a new
Issue
or starting a new
Discussion.