Skip to main content

Rating

A quick rating operation on something and Show evaluation.

Usage​

import React from 'react';
import { Rating } from 'qdm-component-library';

function App() {
return (
<Rating
value={3}
ratingCount={5}
onChange={(val) => funcy(val)}
/>
);
}
export default App;

Reference​

Icon​

You can set any Icon by using icon variable.

import React from 'react';
import { Rating } from 'qdm-component-library';

function App() {
return (
<Rating
value={3}
ratingCount={5}
onChange={(val) => funcy(val)}
Icon={'☾'}
/>
);
}
export default App;

ratingCount​

The number of star counts. The element type is number

onChange​

The onChange attribute fires the moment when the value of the element is changed. The element type is function

disabled​

If true, disable all interactions for this component. The element type is boolean

inLineStyles​

props give addition props to the rating element type Object