Type Alias: RStringFieldFormat
ts
type RStringFieldFormat = (typeof RStringFieldFormat)[number];Union type of all supported string field formats. Use this type for props, function parameters, or conditional logic based on field format.
Example
typescript
const handleFormatChange = (format: RStringFieldFormat) => {
switch (format) {
case "color":
// Setup color picker logic
break;
case "password":
// Setup password security
break;
// ... other formats
}
};