@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.
32 lines (31 loc) • 1.3 kB
TypeScript
/**
* @typedef {object} SettingsTextFieldProps
* @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 {string} [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 {boolean} [hasPlaceholder] - Whether the field has a placeholder.
* @property {string} [type] - The type of the field.
* @property {(fieldName: string, value: string) => void} updateItem - A function to update the item.
*/
/**
* Settings text field component.
* @param {SettingsTextFieldProps} props - The component props.
* @returns {JSX.Element} - The settings text field component.
*/
declare const SettingsTextField: (props: {
fieldName: string;
displayName: string;
required: boolean;
value?: string;
hasLabel?: boolean;
hasHint?: boolean;
hasTooltip?: boolean;
hasPlaceholder?: boolean;
type?: string;
updateItem: (fieldName: string, value: string) => void;
}) => import("react/jsx-runtime").JSX.Element;
export default SettingsTextField;