import { ComponentStory, ComponentMeta } from '@storybook/react'; import Typography from './Typography'; import React from 'react'; import color from '../../styles/colors'; import { NotificationProvider, useNotification } from '../Notification'; export default { title: '4.UI/Typography', component: Typography, decorators: [ (Story) => ( ), ], } as ComponentMeta; const Demo: ComponentStory = () => { return (
Headline 1 Headline 2 Headline 3 Headline 4 Subtitle 1 Subtitle 2 Body 18
Body 18
Body 18 Red
Body 16
Body 16
Body 16 monospace
Body 16
Caption 14
Caption 14
Caption 14 monospace
Caption 12
Caption 12 monospace
); }; const Template: ComponentStory = (args) => { const notify = useNotification(); return ( { notify({ type: 'success', message: 'Copied to clipboard', title: 'New Notification', position: 'topR', }); }} /> ); }; export const Regular = Demo.bind({}); export const Text = Template.bind({}); Text.args = { children: 'Demo Text', }; export const Copyable = Template.bind({}); Copyable.args = { children: 'Copyable Text 222', copyable: true, variant: 'body18', };