({label, description, errorMessage, ...props}: NumberFieldProps)
| 19 | } |
| 20 | |
| 21 | export function NumberField({label, description, errorMessage, ...props}: NumberFieldProps) { |
| 22 | return ( |
| 23 | <AriaNumberField {...props}> |
| 24 | <Label>{label}</Label> |
| 25 | <Group> |
| 26 | <Input className="react-aria-Input inset" /> |
| 27 | <Button slot="decrement" variant="secondary"> |
| 28 | <Minus /> |
| 29 | </Button> |
| 30 | <Button slot="increment" variant="secondary"> |
| 31 | <Plus /> |
| 32 | </Button> |
| 33 | </Group> |
| 34 | {description && <Description>{description}</Description>} |
| 35 | <FieldError>{errorMessage}</FieldError> |
| 36 | </AriaNumberField> |
| 37 | ); |
| 38 | } |
nothing calls this directly
no outgoing calls
no test coverage detected