@rjsf/core
Version:
A simple React component capable of building HTML forms out of a JSON schema.
15 lines • 915 B
TypeScript
import { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';
/** The `RatingWidget` component renders a star or heart rating input
*
* Features:
* - Configurable number of stars/hearts (1-5) with default of 5
* - Supports different shapes (star, heart)
* - Supports minimum and maximum values from schema
* - Handles required, disabled, and readonly states
* - Provides focus and blur event handling for accessibility
* - Uses Unicode characters for better visual representation
*
* @param props - The `WidgetProps` for this component
*/
export default function RatingWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ id, value, required, disabled, readonly, autofocus, onChange, onFocus, onBlur, schema, options, htmlName, }: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=RatingWidget.d.ts.map