Type Alias: EnumAtomProps<T, A>
EnumAtomProps<
T,A> =object&InputLabelProps
Defined in: lib/state-management/EnumAtom.tsx:145
Props for the EnumAtom component.
Type declaration
atom
atom:
A
The Jotai atom controlling the selection
badgeClassName?
optionalbadgeClassName:string
Additional CSS classes for the badge
emptyValueLabel?
optionalemptyValueLabel:string
Text to show when no value is selected
options
options:
T[]
Available enum options
raw?
optionalraw:boolean
Whether to render raw text without styling
textClassName?
optionaltextClassName:string
Additional CSS classes for the text
Type Parameters
T
T extends kindaString | Promise<kindaString>
The type of the enum value
A
A extends WritableAtom<T | Promise<T>, any, any>
The type of the atom