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