Components
NumberField
Documentation for the NumberField component.
NumberField
Preview
The NumberField component is built with React Aria and styled using StyleX.
Import
import { NumberField } from '@moul-dev/ui';Usage
Here is a basic example of how to use the NumberField component:
import { NumberField } from '@moul-dev/ui';
export default function Example() {
return (
<NumberField>
{/* Component content */}
</NumberField>
);
}Props
NumberField Props
Prop
Type
Default className: react-aria-NumberField
| Render Prop | CSS Selector |
|---|---|
isDisabled Whether the number field is disabled. | [data-disabled] |
isInvalid Whether the value is invalid. | [data-invalid] |