base-ui

Compose accessible, unstyled React UI primitives with render-prop patterns.

1|Updated Dec 12, 2025
One-click install
npx skills add https://github.com/mohamed-g-shoaib/forge --skill base-ui-mohamed-g-shoaib
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: base-ui
Source: https://github.com/mohamed-g-shoaib/forge/tree/main/.agents/skills/base-ui
Command: npx skills add https://github.com/mohamed-g-shoaib/forge --skill base-ui-mohamed-g-shoaib

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Base UI provides unstyled, accessible React primitives and composable building blocks, helping teams avoid reinventing core UI logic.

Core Features & Use Cases

  • Unstyled primitives: Base UI handles behavior and accessibility while visuals are supplied by your CSS or framework.
  • Multi-part anatomy: Components are structured as Root plus subparts, enabling explicit composition (e.g., Drawer, Menu, Tooltip) with predictable state.
  • render prop composition: Use render to customize elements and nest components while preserving accessibility and behavior.
  • Overlays, modals, and portals: Build popovers, menus, and dialogs that render in portals and maintain focus management.
  • Accessibility-first by default: ARIA attributes and keyboard navigation are built in to ensure usable interfaces.

Quick Start

Install @base-ui/react, import the primitives, and start composing your first Root-based components to build accessible, unstyled UI.

Frequently Asked Questions about base-ui

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

FAQPage Schema
How does the render prop pattern work for customizing React UI primitives?

You compose multi-part components using a Root element paired with explicit subparts. This anatomy separates state management from visual rendering, enabling predictable composition for overlays and menus while maintaining built-in ARIA attributes and keyboard navigation.

Can I use unstyled React primitives to manage focus in portals and overlays?

Unstyled primitives support building popovers, menus, and dialogs that render in portals while maintaining focus management. Accessibility-first defaults ensure overlays trap focus correctly and respond to keyboard interactions out of the box.

Do I need a specific CSS framework to use unstyled accessible React components?

No specific CSS framework is required. Unstyled primitives handle only behavior and accessibility logic, allowing you to supply visuals using your own CSS, utility classes, or any preferred styling solution.

What is the best way to ship accessible React menus and forms quickly?

The best way to ship accessible menus and forms quickly is using unstyled primitives with built-in ARIA attributes and keyboard navigation. You compose Root elements and subparts, then apply your visual styles without reinventing core UI logic.