A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://coreui.io/react/docs/forms/rating/api/ below:

React Rating Component API - CoreUI

CRating#

import { CRating } from '@coreui/react-pro'

import CRating from '@coreui/react-pro/src/components/rating/CRating'

Property Default Type activeIcon# - string, Element, Icon

The default icon to display when the item is selected.

allowClear# - boolean

Enables the clearing upon clicking the selected item again.

className# - string

A string of all className you want applied to the component.

disabled# - boolean

Toggle the disabled state for the component.

highlightOnlySelected# - boolean

If enabled, only the currently selected icon will be visibly highlighted.

icon# - string, Element, Icon

The default icon to display when the item is not selected.

itemCount# 5 number

Specifies the total number of stars to be displayed in the star rating component. This property determines the scale of the rating, such as out of 5 stars, 10 stars, etc.

name# - string

The name attribute of the radio input elements.

onChange# - (value: number) => void

Execute a function when a user changes the selected element.

onHover# - (value: number) => void

Execute a function when a user hover the element.

precision# 1 number

Minimum increment value change allowed.

readOnly# - boolean

Toggle the readonly state for the component.

size# - 'sm', 'lg', 'custom'

Size the component small, large, or custom if you define custom icons with custom height.

tooltips# - boolean, string[]

Enable tooltips with default values or set specific labels for each icon.

value# - number

The value attribute of component.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4