ark-ui

Provide headless React primitives for accessible, customizable UI components.

1.6k|123|Updated Jul 15, 2019
One-click install
npx skills add https://github.com/hashintel/hash --skill ark-ui
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ark-ui
Source: https://github.com/hashintel/hash/tree/main/.codex/skills/ark-ui
Command: npx skills add https://github.com/hashintel/hash --skill ark-ui

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Ark UI provides headless, accessible React primitives you can style and compose for precise UI patterns without opinionated markup.

Core Features & Use Cases

  • Root-pattern composition like Root and Track for building custom controls
  • Data attribute-driven styling and state cues
  • AsChild for rendering custom elements while preserving behavior
  • Hooks like useAccordion() for interactive components
  • Extensive component catalog (Form Inputs, Overlays, Layout, etc.)

Quick Start

Install and start using Ark UI with React by importing a component and rendering with your own markup.

Frequently Asked Questions about ark-ui

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build accessible UI components without opinionated markup?

Ark UI delivers headless React primitives that provide accessibility conformance and behavioral logic while leaving styling and markup entirely to you. Use root-pattern composition and data attributes to build custom components with complete control over structure and appearance.

Can I style headless components using data attributes?

Yes. Ark UI components expose data attributes that reflect component state, enabling you to target and style elements based on interactive states without relying on class names or predefined themes.

How do I compose custom elements while preserving component behavior?

Use the asChild prop to render your own elements instead of Ark UI's default markup while retaining all accessibility features and state management. This pattern works across form inputs, overlays, and navigation components.

What components does Ark UI cover for form inputs and overlays?

Ark UI provides an extensive catalog including form inputs, overlays, layout patterns, and navigation components. Each primitive follows the same root-pattern composition model for consistency across your project.

Do I need to manage component state manually with hooks?

No. Ark UI handles state management internally, but exposes hooks like useAccordion() for programmatic control when you need to access or manipulate state from your application code.

Can I use Ark UI if I want complete styling control?

Yes. Headless components are designed specifically for projects requiring custom styling. Ark UI provides behavior and accessibility; you provide all visual design through your own CSS or styling framework.