signal-desktop/sticker-creator/elements/Typography.stories.tsx

41 lines
905 B
TypeScript
Raw Normal View History

2020-10-30 20:34:04 +00:00
// Copyright 2019-2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
2022-11-18 00:45:19 +00:00
/* eslint-disable jsx-a11y/anchor-is-valid */
2019-12-17 20:25:57 +00:00
import * as React from 'react';
2019-12-17 20:25:57 +00:00
import { text } from '@storybook/addon-knobs';
import { StoryRow } from './StoryRow';
import { H1, H2, Text } from './Typography';
2022-06-07 00:48:02 +00:00
export default {
title: 'Sticker Creator/elements',
};
2022-11-18 00:45:19 +00:00
export function Typography(): JSX.Element {
2019-12-17 20:25:57 +00:00
const child = text('text', 'foo bar');
return (
<>
<StoryRow left>
2019-12-17 20:25:57 +00:00
<H1>{child}</H1>
</StoryRow>
<StoryRow left>
2019-12-17 20:25:57 +00:00
<H2>{child}</H2>
</StoryRow>
<StoryRow left>
2019-12-17 20:25:57 +00:00
<Text>
{child} {child} {child} {child}
</Text>
</StoryRow>
<StoryRow left>
2019-12-17 20:25:57 +00:00
<Text>
{child} {child} {child} {child}{' '}
2022-11-18 00:45:19 +00:00
<a href="#">Something something something dark side.</a>
2019-12-17 20:25:57 +00:00
</Text>
</StoryRow>
</>
);
2022-11-18 00:45:19 +00:00
}