@ark-ui/react
Version:
A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.
17 lines (14 loc) • 298 B
JavaScript
'use client';
import { createAnatomy } from '@zag-js/anatomy';
const fieldAnatomy = createAnatomy("field").parts(
"root",
"errorText",
"helperText",
"input",
"label",
"select",
"textarea",
"requiredIndicator"
);
const parts = fieldAnatomy.build();
export { fieldAnatomy, parts };