@ark-ui/react
v4.4.4
Published
A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.
Downloads
393,676
Keywords
Readme
Welcome to Ark UI
Ark UI is a headless, open-source UI library with over 45+ components designed for building reusable, scalable Design Systems. It supports a wide range of JavaScript frameworks, offering dedciated packages for each supported framework.
Supported Frameworks
Ark UI is available for the following JavaScript frameworks:
- React:
@ark-ui/react
- Solid:
@ark-ui/solid
- Vue:
@ark-ui/vue
Available Components
- Accordion
- Avatar
- Carousel
- Checkbox
- Clipboard
- Collapsible
- Color Picker
- Combobox
- Date Picker
- Dialog
- Editable
- Field
- Fieldset
- File Upload
- Hover Card
- Menu
- Number Input
- Pagination
- Pin Input
- Popover
- Progress - Circular
- Progress - Linear
- QR Code
- Radio Group
- Rating Group
- Segment Group
- Select
- Signature Pad
- Slider
- Splitter
- Switch
- Tabs
- Tags Input
- Time Picker
- Timer
- Toast
- Toggle Group
- Tooltip
- Tree View
Installation
To install @ark-ui/react
, run the following command:
npm install @ark-ui/react
or with yarn:
yarn add @ark-ui/react
Usage
To use a component from @ark-ui/react
, import it and include it in your application:
import { Slider } from '@ark-ui/react'
import { useState } from 'react'
export const MySlider = () => {
const [value, setValue] = useState([30])
return (
<Slider.Root min={-50} max={50} value={value} onValueChange={(e) => setValue(e.value)}>
<Slider.Label>Label</Slider.Label>
<Slider.ValueText>{value}</Slider.ValueText>
<Slider.Control>
<Slider.Track>
<Slider.Range />
</Slider.Track>
<Slider.Thumb index={0} />
</Slider.Control>
</Slider.Root>
)
}
Documentation
For more detailed documentation and examples, please visit the official documentation.
Roadmap
You can request, vote for, and check upcoming features on our roadmap.
Contribution
We welcome contributions to Ark UI. Please read our contributing guidelines for more information on how to contribute.
License
This project is licensed under the terms of the MIT license.