home / skills / noklip-io / agent-skills / base-ui
This skill helps you navigate and reference Base UI documentation, components, and patterns to implement accessible, composable React UI efficiently.
npx playbooks add skill noklip-io/agent-skills --skill base-uiReview the files below or copy the command above to add this skill to your agents.
---
name: base-ui
description: Base UI reference and workflows for @base-ui/react (unstyled, accessible React components, composition utilities, and form helpers). Use when implementing Base UI components, portals, styling/state hooks, render-prop composition, eventDetails customization, animations, forms/validation, TypeScript typing, CSP/RTL utilities, or checking Base UI docs, issues, or releases.
---
# Base UI
## Overview
Use this skill as a navigation hub for Base UI. Load the specific reference files when needed.
## Start Here
- Read `references/overview.md` for install, portal isolation, iOS 26 Safari, and LLM docs access.
- Pick components from `references/components.md`.
- Choose guidance by need: styling, composition, customization, animation, forms, TypeScript, or utils.
## Reference Map
- `references/overview.md`: install, portals, iOS 26 Safari, LLM docs, project context.
- `references/components.md`: full component and utility index with .md doc links.
- `references/styling.md`: className/state, data attributes, CSS variables, style prop, Tailwind/CSS Modules/CSS-in-JS patterns.
- `references/composition.md`: render prop usage, ref forwarding, nesting render props.
- `references/customization.md`: Base UI events, eventDetails, cancel/allowPropagation, preventBaseUIHandler, controlled vs uncontrolled.
- `references/animation.md`: data attributes, transitions vs animations, Motion/AnimatePresence, keepMounted, getAnimations.
- `references/forms.md`: Form/Field patterns, constraint validation, server-side errors, RHF/TanStack integration.
- `references/typescript.md`: Props/State namespaces, ChangeEventDetails/Reason, actionsRef types, useRender types.
- `references/utils.md`: CSPProvider, DirectionProvider/useDirection, mergeProps/mergePropsN, useRender patterns.
- `references/edge-cases.md`: common pitfalls and fixes.
- `references/examples.md`: concise, runnable examples.
- `references/links.md`: issues and changelog entry points.
## Use Pattern
1. Identify the component or utility.
2. Read the component docs in `references/components.md`.
3. Pull in the relevant handbook or utility reference.
4. Confirm edge cases in `references/edge-cases.md`.
5. Use `references/links.md` for issues and release notes before shipping.
This skill is a concise navigation hub for Base UI usage and reference material. It collects component indexes, patterns for styling and composition, animation and form workflows, TypeScript typings, and utility helpers. Use it to quickly find the right guidance, edge-case fixes, and links to issues or changelogs before shipping.
The skill maps common implementation needs to focused reference pages: components, styling, composition, customization, animation, forms, TypeScript, utilities, edge cases, and examples. Start by identifying the component or utility, consult the component index, then open the relevant handbook section for patterns, props, and implementation notes. It also directs you to troubleshooting entries and changelog/issue links when you need release context or bug reports.
Where do I start when adding a new Base UI component?
Find the component in the components index, read its dedicated reference, then follow composition, styling, and edge-case guidance before testing in the target environment.
How do I handle propagation and custom Base UI events?
Use the eventDetails utilities to inspect cancel/allow propagation, and prefer preventBaseUIHandler patterns where documented to avoid breaking internal handlers.