REKET UI Library Based on React and Tailwind CSS
// with npm
npm install @reket/ui
// with yarn
yarn add @reket/uiimport { Button } from '@reket/ui';
const YourComponent = () => {
return <Button text="Button Text" color="purple" size="xl" option="filled" />;
};To create a Storybook file quickly, you can use this snippet:
- Make a new file called
ComponentName.stories.tsx. - In that file, write "storybook".
- Then, the code below will be added to the file automatically:
import type { Meta, StoryObj } from '@storybook/react';
import { ComponentName } from './ComponentName';
import { generateDocsIntro } from '../../../utils/storybook/docsHelper';
// Update the import path based on this component's location
const meta: Meta<typeof ComponentName> = {
component: ComponentName,
title: 'Component/ComponentName',
parameters: {
docs: {
description: {
component: generateDocsIntro('ComponentName'),
},
},
},
argTypes: {},
};
export default meta;
type Story = StoryObj<typeof ComponentName>;
export const Default: Story = {
args: {},
};