PHP 8.2.30
Preview: tabs.stories.tsx Size: 704 B
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/@adminjs/design-system/src/atoms/tabs/tabs.stories.tsx

import { Meta, StoryFn } from '@storybook/react'
import React, { useState } from 'react'

import { Box } from '../index.js'
import { Tab, Tabs } from './index.js'

export const Default: StoryFn = () => {
  const [selectedTab, setSelectedTab] = useState('first')

  return (
    <Tabs currentTab={selectedTab} onChange={setSelectedTab}>
      <Tab id="first" label="First tab">
        First
      </Tab>
      <Tab id="second" label="Second tab">
        <Box color="primary100">Second</Box>
      </Tab>
      <Tab id="third" label="Third tab">
        Third
      </Tab>
    </Tabs>
  )
}

const meta: Meta<typeof Tabs> = {
  title: 'DesignSystem/Atoms/Tabs',
  component: Tabs,
}

export default meta

Directory Contents

Dirs: 0 × Files: 4

Name Size Perms Modified Actions
53 B lrw-r--r-- 2026-02-28 00:31:46
Edit Download
848 B lrw-r--r-- 2026-02-28 00:32:00
Edit Download
704 B lrw-r--r-- 2026-02-28 00:32:00
Edit Download
4.35 KB lrw-r--r-- 2026-02-28 00:32:00
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).