generated from eea/volto-addon-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
created stories for Container component
- Loading branch information
1 parent
6fddccc
commit 41934f6
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
src/customizations/components/theme/Container/Container.stories.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import React from 'react' | ||
import { Container } from 'semantic-ui-react' | ||
|
||
export default { | ||
title: 'Components/Container', | ||
component: Container, | ||
parameters: { | ||
actions: { | ||
handles: ['click'], | ||
}, | ||
}, | ||
argTypes: { | ||
textAlign: { | ||
control: { type: 'inline-radio' }, | ||
options: ['left','right', 'center', 'justified'], | ||
}, | ||
} | ||
} | ||
|
||
const content = <p> | ||
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo | ||
ligula eget dolor. Aenean massa strong. Cum sociis natoque penatibus et | ||
magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, | ||
ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa | ||
quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, | ||
arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. | ||
Nullam dictum felis eu pede link mollis pretium. Integer tincidunt. Cras | ||
dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend | ||
tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, | ||
enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. | ||
Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean | ||
imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper | ||
ultricies nisi. | ||
</p> | ||
|
||
const Template = (args) => <Container {...args}></Container> | ||
|
||
export const Default = Template.bind({}); | ||
Default.args = { | ||
content: content, | ||
} | ||
|
||
export const Playground = Template.bind({}); | ||
Playground.args = { | ||
content: content, | ||
text:false, | ||
} | ||
|