# Form Rating > BootstrapVue's custom star rating component, ``, is for entering or displaying a > rating value. The component is fully WAI-ARIA accessible and supports keyboard control. ## Overview Rating values range from `1` to the number of stars allowed (default stars is `5`, minimum stars is `3`). Since `` uses the Bootstrap class `form-control`, it can easily be placed inside [input groups](/docs/components/input-group). There are two main modes for ``: interactive and readonly. Interactive mode allows the user to chose a rating from `1` to the number of stars (default `5`) in _whole number_ increments. **Interactive rating (input mode):** ```html ``` Readonly mode is used for displaying an aggregated rating, and supports `half` stars. **Readonly (non-interactive) rating:** ```html ``` ## Styling ### Variant and color Easily apply one of the Bootstrap theme color variants to the rating icon via the `variant` prop. The default is to use the default form control text color. ```html ``` To apply a _custom color_, use the `color` prop which accepts a standard CSS color name, HEX color value (`#...`) or RGB/RGBA (`rgb(...)`/`rgba(...)`) color value: ```html ``` **Notes:** - The prop `color` takes precedence over the `variant` prop - Variants translate to the `text-{variant}` utility class on the icon ### Number of stars By default, `` defaults to `5` stars. You can change the number of stars via the `stars` prop. The minimum allowed stars is `3`. ```html ``` ### Show value By default `` does not display the current numerical value. To show the current value simply set the `show-value` prop to `true`. To control the precision (number of digits after the decimal) simply set the `precision` prop to the number of digits after the decimal to show. The `precision` setting is useful when showing an aggregated or average rating value in `readonly` mode. ```html ``` **With precision set:** ```html ``` #### Show maximum value 2.13.0+ Optionally show the maximum rating possible by also setting the prop `show-value-max` to `true`: ```html ``` ### Control sizing Fancy a small or large rating control? Simply set the prop `size` to either `'sm'` or `'lg'` respectively. ```html ``` ### Inline mode By default, `` occupies 100% width of the parent container. In some situations you may prefer the custom input to occupy on the space required for it's contents. Simply set the `inline` prop to `true` to render the component in inline mode: ```html ``` ### Borderless By default, `` has standard Bootstrap form-control styling. To disable the default form-control border, simply set the `no-border` prop to `true`. ```html ``` **Notes:** - For accessibility reasons a focus ring will show when the rating component has focus, regardless of the `no-border` setting. ### Disabled If you require additional information before a user can chose a ratings value, simply set the `disabled` prop to `true` to disable any user interactivity on the component: ```html ``` ### Readonly Readonly ratings remain focusable, but are not interactive. This state is useful for displaying an aggregated or average ratings value. Fractional values are allowed and will result in the displaying of _half icons_ when the `value` is not a whole number (the half icon threshold is `0.5`). ```html ``` ### Clear button Optionally show a clear icon via the `show-clear` prop. The value will be set to `null` when the clear icon is clicked. ```html ``` **Notes:** - The clear icon will _not_ be shown when the props `readonly` or `disabled` are set. ### Icons By default `` uses the [Bootstrap Icons](/docs/icons) icons `'star'`, `'star-half'`, `'star-fill'`, and the icon `'x'` (for the optional clear button). You can specify alternate Bootstrap Icons to use via the `icon-empty`, `icon-half`, `icon-full`, and `icon-clear` props. These props accept a Bootstrap Icon kebab-case name, and requires that the corresponding icon component be registered/installed either locally or globally. ```html ``` Alternatively, you an supply your own content via the `'icon-empty'`, `'icon-half'`, `'icon-full'`, and `'icon-clear'` scoped slots. ## Form submission If you intend to submit the rating value via standard form submission, set the `name` prop to the desired form field name. A hidden input will be generated with the current value (or an empty string if there is no value). ## Using in input groups The following is an example of placing `` in an input group: ```html ``` ## Internationalization When a `locale` is specified, the displayed value (when the `show-value` prop is `true`) will be in the browser's default locale. To change the locale, simple set the `locale` prop to the preferred locale, or an array of preferred locales (most preferred locale first). This will affect the optional displayed value and the left-to-right or right-to-left orientation of the component. ```html ``` ## Implementation notes The ratings control uses the Bootstrap v4 `form-control*`, `d-*` (display), `border-*` and `text-{variant}` classes, as well as BootstrapVue's custom CSS for proper styling. The root element of the control is an `` element, which allows a `