|
- import {createBlockquote} from "./BlockquoteComponent";
-
- export default {
- title: 'Atoms/Blockquote',
- args: {
- quote: ['Ein Unternehmen zu gründen, ähnelt dem Kuchenbacken: Du brauchst alle nötigen Zutaten und jede einzelne davon in der genau passenden Menge.'],
- author: 'Max Mustermann, Unternehmer',
- type: 'regular',
- },
- argTypes: {
- quote: {
- name: 'Zitat',
- },
- author: {
- name: 'Autor',
- },
- type: {
- name: 'Seiten-Typ',
- control: 'select',
- options: ['regular', 'magazine'],
- }
- }
- }
- const Template = ({...args}) => {
- return createBlockquote({...args});
- }
-
- export const RegularBlockquote = Template.bind({});
- RegularBlockquote.args = {};
-
- export const MagazineBlockquote = Template.bind({});
- MagazineBlockquote.args = {
- type: 'magazine',
- };
|