Signal-Desktop/sticker-creator/elements/Toast.stories.tsx

24 lines
540 B
TypeScript

// Copyright 2019-2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import * as React from 'react';
import { text } from '@storybook/addon-knobs';
import { action } from '@storybook/addon-actions';
import { StoryRow } from './StoryRow';
import { Toast } from './Toast';
export default {
title: 'Sticker Creator/elements',
};
export const _Toast = (): JSX.Element => {
const child = text('text', 'foo bar');
return (
<StoryRow>
<Toast onClick={action('click')}>{child}</Toast>
</StoryRow>
);
};