Tansy UI: a themeable React component kit

Tansy UI is a React component kit by OpenKhalix, named after the tansy
flower ("golden buttons"). It has two surfaces:

- A landing page built entirely from the kit's own components, with
  five featured parts, a palette-switching playground form, and links
  into Storybook
- A Storybook workshop with Tansy branding, a Welcome page, palette
  toolbar and accessibility checks

Includes 15 components with colocated tokens and stories, seven brand
palettes, a palette-aware logo, a Docker/nginx image, a scripted
cPanel deploy, and a generator that keeps the landing page catalogue
in sync with Storybook.
This commit is contained in:
thekhalidsha committed 2026-09-28 17:09:57 +05:30
commit 9d406d6d2a
81 files changed
+14240

No files matched your search

+42
View File
@@ -0,0 +1,42 @@
import type { Meta, StoryObj } from '@storybook/react-vite'
import { Accordion } from './Accordion'
const meta = {
title: 'Navigation/Accordion',
component: Accordion,
tags: ['autodocs'],
parameters: {
docs: {
description: {
component: 'A controlled-friendly disclosure primitive for showing related content without overwhelming the page.',
},
},
},
args: {
items: [
{
title: 'What is a component story?',
content: 'A focused example of one component with specific props, states, and surrounding context.',
},
{
title: 'Why document states?',
content: 'A component is only complete when its loading, empty, error, and success states are clear.',
},
{
title: 'How do I add my own?',
content: 'Create a .stories.tsx file beside the component and use the same Meta and StoryObj patterns.',
},
],
},
} satisfies Meta<typeof Accordion>
export default meta
type Story = StoryObj<typeof meta>
export const Default: Story = {}
export const Multiple: Story = {
args: {
allowMultiple: true,
},
}