UNPKG

@yunusemrejs/drag-drop-content-types-strapi5

Version:

A powerful Strapi plugin that enables intuitive drag-and-drop sorting of content types with real-time updates, optimized performance, and a seamless user experience.

30 lines (29 loc) 1.21 kB
/** * @typedef {object} SettingsToggleFieldProps * @property {string} fieldName - The name of the field. * @property {string} displayName - The display name of the field. * @property {boolean} required - Whether the field is required. * @property {boolean} [value] - The value of the field. * @property {boolean} [hasLabel] - Whether the field has a label. * @property {boolean} [hasHint] - Whether the field has a hint. * @property {boolean} [hasTooltip] - Whether the field has a tooltip. * @property {string} [type] - The type of the field. * @property {(fieldName: string, value: boolean) => void} updateItem - A function to update the item. */ /** * Settings toggle field component. * @param {SettingsToggleFieldProps} props - The component props. * @returns {JSX.Element} - The settings toggle field component. */ declare const SettingsToggleField: (props: { fieldName: string; displayName: string; required: boolean; value?: boolean; hasLabel?: boolean; hasHint?: boolean; hasTooltip?: boolean; type?: string; updateItem: (fieldName: string, value: boolean) => void; }) => import("react/jsx-runtime").JSX.Element; export default SettingsToggleField;