Type Alias: EnumAtomValueProps<T, A>
EnumAtomValueProps<
T,A> =object
Defined in: lib/state-management/EnumAtom.tsx:22
Props for the EnumAtomValue component.
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
Properties
atom
atom:
A
Defined in: lib/state-management/EnumAtom.tsx:26
The Jotai atom controlling the selection
badgeClassName?
optionalbadgeClassName:string
Defined in: lib/state-management/EnumAtom.tsx:28
Additional CSS classes for the badge
mode?
optionalmode:fieldDisplayMode
Defined in: lib/state-management/EnumAtom.tsx:32
The display mode of the component
option
option:
T
Defined in: lib/state-management/EnumAtom.tsx:24
The enum option value
raw?
optionalraw:boolean
Defined in: lib/state-management/EnumAtom.tsx:34
Whether to render raw text without styling
textClassName?
optionaltextClassName:string
Defined in: lib/state-management/EnumAtom.tsx:30
Additional CSS classes for the text