Interactive example

Everything you need, at a glance.

Installation

terminal
bunx --bun shadcn@latest add https://apple-ui-eduardo.vercel.app/r/tabs.json

The registry includes the shared styles and dependencies. Import @/components/apple-ui/styles.css in your root layout once. For the package route, use the installation guide.

Usage

tsx
<Tabs defaultValue="overview">
  <TabsList aria-label="Project">
    <TabsTrigger value="overview">Overview</TabsTrigger>
    <TabsTrigger value="activity">Activity</TabsTrigger>
  </TabsList>
  <TabsContent value="overview">Project overview</TabsContent>
  <TabsContent value="activity">Recent activity</TabsContent>
</Tabs>

Package imports use @eduardoul/apple-ui. Registry imports use @/components/apple-ui. Add "use client" to files that use state or event handlers.

API reference

PropertyTypeDefault
valuestringuncontrolled
orientationhorizontal | verticalhorizontal

Use className and style to customize the component. The package includes full TypeScript definitions for its supported element properties and refs.

Design guidance

  • Keep navigation choices stable.
  • Tab labels should describe the destination.
Read Apple’s guidance

Accessibility

Provide a visible label or accessible name. Keep keyboard focus visible and check the example with your content at 200 percent zoom. Overlays use Radix for focus management and keyboard dismissal.

Library styles support reduced motion, reduced transparency, increased contrast and forced colors. Read the accessibility foundation for the checks your application still needs.