An open source design system that's fully customizable and agent ready
TypeScript
// Copyright (c) Meta Platforms, Inc. and affiliates.
'use client';
import {useState} from 'react';
import {NumberInput} from '@astryxdesign/core/NumberInput';
export default function NumberInputClearableNumberInput() {
const [value, setValue] = useState<number | null>(75);
return (
<div style={{width: 300}}>
<NumberInput
label="Progress"
units="%"
min={0}
max={100}
value={value}
onChange={setValue}
hasClear
/>
</div>
);
}