UNPKG

@rjsf/core

Version:

A simple React component capable of building HTML forms out of a JSON schema.

16 lines 900 B
import { RJSFSchema, StrictRJSFSchema } from '@rjsf/utils'; export interface SchemaExamplesProps<S extends StrictRJSFSchema = RJSFSchema> { /** The id of the input element this datalist is for */ id: string; /** The JSON schema object containing examples and default value */ schema: S; } /** Renders a `<datalist>` element containing options from schema examples and default value. * Normalizes types to prevent duplicate keys when examples and default have different types. * For example, if examples are strings ["5432"] and default is number 5432, the default * will not be added as a duplicate option. * * @param props - The `SchemaExamplesProps` for this component */ export default function SchemaExamples<S extends StrictRJSFSchema = RJSFSchema>(props: SchemaExamplesProps<S>): import("react/jsx-runtime").JSX.Element | null; //# sourceMappingURL=SchemaExamples.d.ts.map