@melio-ui/number-input
v0.0.3
Published
### 기본
Downloads
3
Readme
NumberInput
기본
<NumberInput.Root>
<NumberInput.Field />
<NumberInput.ButtonGroup>
<NumberInput.Plus />
<NumberInput.Minus />
</NumberInput.ButtonGroup>
</NumberInput.Root>
<NumberInput.Root>
<NumberInput.Field />
<NumberInput.ButtonGroup>
<NumberInput.Plus asChild>
<button type="button">+</button>
</NumberInput.Plus>
<NumberInput.Minus asChild>
<button type="button">-</button>
</NumberInput.Minus>
</NumberInput.ButtonGroup>
</NumberInput.Root>
Disabled
<NumberInput.Root disabled>
<NumberInput.Field />
<NumberInput.ButtonGroup>
<NumberInput.Plus />
<NumberInput.Minus />
</NumberInput.ButtonGroup>
</NumberInput.Root>
ReadOnly
<NumberInput.Root readOnly>
<NumberInput.Field />
<NumberInput.ButtonGroup>
<NumberInput.Plus />
<NumberInput.Minus />
</NumberInput.ButtonGroup>
</NumberInput.Root>
Min/Max
<NumberInput.Root min={0} max={100} step={5}>
<NumberInput.Field />
<NumberInput.ButtonGroup>
<NumberInput.Plus />
<NumberInput.Minus />
</NumberInput.ButtonGroup>
</NumberInput.Root>
Custom(Invalid)
<NumberInput.Root style={{ border: '1px solid', borderColor: 'var(--es-error)' }}>
<NumberInput.Field style={{ border: 'none', outline: 'none', boxShadow: 'none' }} />
<NumberInput.ButtonGroup>
<NumberInput.Plus />
<NumberInput.Minus />
</NumberInput.ButtonGroup>
</NumberInput.Root>