docs: function Rating(props) {
    const { className, dataAttrs, rate, size } = props;
  
    const restProps = getDataAttributes(dataAttrs);
  
    const stars = Array.from(Array(size).keys());
    const value = Math.ceil((rate / size) * 100);
  
    return (
      <div className={classnames('ui-rating', className)} {...restProps}>
        {stars.map(v => <b key={v}>★</b>)}
        <div className="ui-rating-value" style={{ width: `${value}%` }}>
          {stars.map(v => <b key={v}>★</b>)}
        </div>
      </div>
    );
  }