Skip to content

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

  • ADR-072 — Numeric Enum on NumberProp
  • ADR-105 — Type–Schema Parity for Overlapping Prop Unions

Source

FormatFile
JSON Schemapackages/schema/schema/component.schema.json
TypeScriptpackages/schema/types/Props.ts
Specification§4.2, §11