signal-desktop/sticker-creator/elements/Typography.stories.tsx
2020-11-04 13:03:13 -06:00

39 lines
980 B
TypeScript

// Copyright 2019-2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
/* eslint-disable no-script-url, jsx-a11y/anchor-is-valid */
import * as React from 'react';
import { storiesOf } from '@storybook/react';
import { text } from '@storybook/addon-knobs';
import { StoryRow } from './StoryRow';
import { H1, H2, Text } from './Typography';
storiesOf('Sticker Creator/elements', module).add('Typography', () => {
const child = text('text', 'foo bar');
return (
<>
<StoryRow left>
<H1>{child}</H1>
</StoryRow>
<StoryRow left>
<H2>{child}</H2>
</StoryRow>
<StoryRow left>
<Text>
{child} {child} {child} {child}
</Text>
</StoryRow>
<StoryRow left>
<Text>
{child} {child} {child} {child}{' '}
<a href="javascript: void 0;">
Something something something dark side.
</a>
</Text>
</StoryRow>
</>
);
});