base-ui
Base UI unstyled React components. Covers forms, menus, overlays, composition. Use when building accessible, unstyled React UI components with @base-ui/react, composing with render props, or implementing custom-styled form controls, menus, and overlays. Keywords: @base-ui/react, render props, unstyled components.
What this skill does
# Base UI (React) Base UI provides unstyled, composable React components. This skill focuses on assembling multi-part components, composing with the `render` prop, and meeting accessibility requirements while you supply styling. ## Quick navigation (references) ### Utilities - references/csp-provider.md - references/direction-provider.md - references/merge-props.md - references/use-render.md ### Forms & inputs - references/form.md - references/fieldset.md - references/input.md - references/number-field.md - references/otp-field.md - references/radio.md - references/select.md - references/slider.md - references/switch.md ### Feedback & status - references/meter.md - references/progress.md - references/toast.md ### Menus, navigation, overlays - references/drawer.md - references/menu.md - references/menubar.md - references/navigation-menu.md - references/popover.md - references/preview-card.md - references/tooltip.md ### Toggles & controls - references/toggle.md - references/toggle-group.md - references/toolbar.md ### Layout & separators - references/scroll-area.md - references/separator.md ## v1.4.1 highlights - `mergeProps` now forwards multi-argument event handlers correctly, which matters for wrapped callbacks that receive extra details/state alongside the event. - Tabbability with `display: contents` was fixed; retest custom wrappers and render-prop compositions that flatten DOM structure. - Popup sizing on rapid trigger hover was fixed, and clipped-item highlight clearing inside scroll containers is more reliable. ## v1.5.0 highlights - `OTPField` replaces `sanitizeValue()` with `normalizeValue()` and improves keyboard shortcut plus validation-composition behavior. - Popup-based components now respect controlled `open` state more consistently, which affects `Popover`, `Menu`, `PreviewCard`, and related overlays. - `Form`, `Field`, and `OTPField` avoid older `flushSync`-style validation timing patterns; retest any local validation scheduling workarounds before keeping them. - RTL behavior is corrected across `NavigationMenu`, `Popover`, and `ScrollArea`. - `Drawer.Viewport` now forwards `style`, which is useful for custom viewport sizing and animated layout constraints. ## v1.4.0 highlights - `OTPField` arrives as a preview primitive for one-time-password and verification-code entry. - Hidden inputs expose `form` and `suppressHydrationWarning`, which matters when controls submit to external forms or hydrate across SSR boundaries. - `render` warnings and `preventBaseUIHandler()` runtime behavior are more reliable in composed components. - Overlay/input primitives received important behavioral fixes across `Drawer`, `NavigationMenu`, `Select`, `Slider`, `Toast`, and `Switch`. ## v1.3.0 highlights - Drawer is now stable (no longer preview) and should be treated as a first-class overlay primitive. - Autocomplete and Combobox add `InputGroup`; Combobox, Select, and Slider add `Label` parts. - Drawer adds `SwipeArea` for explicit swipe affordances. - Tooltip adds `closeOnClick`; Toast can close all toasts. - Checkbox, Radio Group, and Switch improve automatic `aria-labelledby` support. - `render` prop support from v1.2.0 remains relevant, including lazy elements. ## Core concepts to apply - **Unstyled primitives**: all visuals come from your CSS/Tailwind/CSS Modules. Base UI handles behavior and accessibility. - **Multi-part anatomy**: most components follow `Root` + subparts (`Trigger`, `Popup`, `Item`, etc.). Assemble them explicitly. - **`render` prop**: replace the default element or wrap with your own component; when using the function form, merge props manually with `mergeProps`. - **State-driven styling**: many parts expose data attributes such as `data-[popup-open]`, `data-[highlighted]`, `data-[pressed]`, `data-[checked]`, `data-[invalid]`, etc. - **Portals for overlays**: use `Portal` + `Positioner` + `Popup` for popovers, menus, tooltips, select, navigation menu content, and preview cards. ## Recipes ### 1) Build accessible forms quickly - Wrap inputs with `Form` for submission and error aggregation. - Use `Field.Root` with a `name`, then `Field.Label`, `Field.Control`, and `Field.Error` for labels and errors. - Group related fields with `Fieldset.Root` + `Fieldset.Legend`. - For `Radio` groups, either use `RadioGroup` with `aria-labelledby`, or render `RadioGroup` via `Fieldset.Root` and use `Field.Label` for each option. - Ensure **every** form control has an accessible name (label or `Field`/`Fieldset` labeling pattern). ### 2) Compose with `render` + `mergeProps` - When passing a React element to `render`, Base UI merges props automatically. - When passing a function to `render`, **merge** Base UI props and your props with `mergeProps`. - Use `event.preventBaseUIHandler()` inside merged event handlers to stop Base UI’s internal behavior when needed (synthetic events only). ### 3) Overlays and menus (portaled UI) - Build popups using `Root` + `Trigger` + `Portal` + `Positioner` + `Popup`. - For menus and navigation, add `Item`, `Separator`, `Arrow`, and list/viewport parts as needed. - `NavigationMenu.Link` supports `render` for framework router links. ### 4) Toasts - Wrap the app (or a subtree) with `Toast.Provider`. - Use `Toast.useToastManager()` to create toasts. - Render a `Toast.Viewport` inside `Toast.Portal`, then map `toasts` to `Toast.Root` entries with `Toast.Content`, `Toast.Title`, `Toast.Description`, and `Toast.Close`. ### 5) RTL and CSP constraints - For RTL behavior, wrap with `DirectionProvider` and also set `dir="rtl"` (provider does not set the DOM direction). - For strict CSP, wrap with `CSPProvider` and pass `nonce`, or disable inline style elements if your app supplies external styles. Beware inline style **attributes** are not controlled by `CSPProvider`. ### 6) Sliders and ranges - Single value sliders: one `Slider.Thumb`. - Range sliders: pass an array and render a `Slider.Thumb` per value; add `index` for SSR alignment. - Adjust thumb alignment with `thumbAlignment` when edge alignment is required. ## Critical prohibitions - Do not omit accessible labels for inputs, sliders, switches, or radio groups. - Do not expect Base UI to provide default styling; apply your own styles. - Do not forget `Portal` for overlays that need to escape stacking/overflow contexts. - Do not skip `mergeProps` when using the function form of `render`. ## Output expectations When responding to the user, provide: - The specific Base UI components to use (and their key parts). - A brief assembly plan (Root + parts + portal/positioner where relevant). - A short checklist for accessibility and state-driven styling. ## Links - [Documentation](https://base-ui.com/) - [Releases](https://github.com/mui/base-ui/releases) - [GitHub](https://github.com/mui/base-ui) - [npm](https://www.npmjs.com/package/@base-ui-components/react)
Related in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.