Skip to content

Tabs

Text tabs with one raised, borderless fill that slides to the active tab on springs, stretching a little in flight; panels cross over and the height follows.

Download
Customize

Install

npx shadcn@latest add https://obsydeui.com/r/tabs.json

Usage

Import it from where the CLI puts it, or copy the files below by hand.

import { Tabs } from '@/components/obsyde/ember/tabs/Tabs';

export function Example() {
  return (
    <Tabs tabs="First, Second, Third, Fourth" />
  );
}

Files

Plain React, TypeScript and CSS. No dependencies. The download keeps these paths.

  • ember/tabs/Tabs.tsxcomponent
  • ember/tabs/tabs.cssstyles
  • ember/tabs/TabsDemo.tsxdemo
  • ember/nav-kit/motion.tsshared
  • ember/shared/spring.tsshared
  • ember/shared/accent.tsshared
  • ember/shared/ember.cssshared

API

PropTypeDefault
accentAccent'ember' | 'volt' | 'arc''ember'
tabsTabsstring'First, Second, Third, Fourth'
valueActive tabstring—