enum
The closed set of accepted values, when the source enumerates them rather than leaving the range open. Absent means the prop accepts any number.
Path
component-api:props.<NumberProp prop>.enum
Value
number[], at least 1 entry
Decisions
Source
| Format | File |
|---|---|
| JSON Schema | packages/schema/schema/component.schema.json |
| TypeScript | packages/schema/types/Props.ts |
| Specification | §4.2, §11 |