signal-desktop/sticker-creator/elements/Typography.stories.tsx
2022-11-17 16:45:19 -08:00

40 lines
905 B
TypeScript

// Copyright 2019-2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
/* eslint-disable jsx-a11y/anchor-is-valid */
import * as React from 'react';
import { text } from '@storybook/addon-knobs';
import { StoryRow } from './StoryRow';
import { H1, H2, Text } from './Typography';
export default {
title: 'Sticker Creator/elements',
};
export function Typography(): JSX.Element {
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="#">Something something something dark side.</a>
</Text>
</StoryRow>
</>
);
}