Ark
#Headless_UI #Chakra_UI
from: The future of Chakra UI
>Moving to a headless component system
https://github.com/chakra-ui/ark
Universal headless UI components for the web. Powered by Zag.js
#Zag
code:tsx
import { NumberInput } from '@ark-ui/react';
export function Demo() {
return (
<NumberInput min={-50} max={50}>
<NumberInput.Label>Label</NumberInput.Label>
<NumberInput.Field />
<NumberInput.Control>
<NumberInput.DecrementTrigger>
<button>-1</button>
</NumberInput.DecrementTrigger>
<NumberInput.IncrementTrigger>
<button>+1</button>
</NumberInput.IncrementTrigger>
</NumberInput.Control>
</NumberInput>
);
}
We created a new library called Ark, which will be the headless component foundation for Chakra UI.
This project is still in the early stages of development. If you'd like to test it out and help us improve it, please reach out on Twitter or email me at segun@chakra-ui.com
Zagで作られたHeadless UIなUIライブラリ