diff --git a/example/.rnstorybook/stories/Molecules/Button/Button.stories.tsx b/example/.rnstorybook/stories/Molecules/Button/Button.stories.tsx new file mode 100644 index 0000000..838095c --- /dev/null +++ b/example/.rnstorybook/stories/Molecules/Button/Button.stories.tsx @@ -0,0 +1,116 @@ +import type { Meta, StoryObj } from '@storybook/react-native'; +import React, { useState } from 'react'; +import { View } from 'react-native'; +import { Button } from 'rubber-duck-ui'; +import { styles } from './Button.styles'; + +const meta = { + title: 'Molecules/Button', + component: Button, + args: { + label: 'Button', + variant: 'primary', + size: 'md', + disabled: false, + isLoading: false, + onPress: () => {}, + }, + argTypes: { + label: { control: 'text' }, + variant: { + control: 'select', + options: ['primary', 'secondary', 'outline', 'ghost', 'destructive'], + }, + size: { + control: 'select', + options: ['sm', 'md', 'lg'], + }, + disabled: { control: 'boolean' }, + isLoading: { control: 'boolean' }, + leftIcon: { + control: 'select', + options: [undefined, 'ArrowLeft', 'Plus', 'Check', 'Trash2'], + }, + rightIcon: { + control: 'select', + options: [undefined, 'ArrowRight', 'Plus', 'Check', 'Trash2'], + }, + }, +} satisfies Meta; + +export default meta; + +type Story = StoryObj; + +export const Default: Story = {}; + +export const Variants: Story = { + render: (args) => ( + +