-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update paragraph stories, reorganize classes, switch to css
- Loading branch information
1 parent
7aecc2c
commit 2be2a90
Showing
4 changed files
with
39 additions
and
35 deletions.
There are no files selected for viewing
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,4 @@ | ||
.a-paragraph { | ||
@apply mb-4; | ||
@apply text-primary leading-loose; | ||
} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,38 +1,41 @@ | ||
import { storiesOf } from '@storybook/vue' | ||
import { text } from '@storybook/addon-knobs' | ||
|
||
import AParagraph from './Paragraph.vue' | ||
|
||
const sampleParagraphText = 'Velit proident fugiat pariatur irure sint non ut non. Adipisicing aliqua consectetur nisi aliquip velit. Nisi pariatur est consectetur culpa occaecat enim nulla laborum ex. Consectetur incididunt minim cupidatat ad aliquip. Ea non ipsum ut consequat sit adipisicing eiusmod do. Officia incididunt cillum incididunt aliquip sit labore laboris do cillum commodo occaecat voluptate ea aliqua.' | ||
|
||
storiesOf('Atoms/Paragraph', module) | ||
.addParameters({ info: true }) | ||
.add('Default', () => ({ | ||
components: { AParagraph }, | ||
props: { | ||
textKnob: { | ||
default: text('Paragraph text', sampleParagraphText) | ||
} | ||
}, | ||
template: ` | ||
<a-paragraph> | ||
{{ textKnob }} | ||
</a-paragraph> | ||
` | ||
})) | ||
.add('Custom tag', () => ({ | ||
components: { AParagraph }, | ||
props: { | ||
textKnob: { | ||
default: text('Paragraph text', sampleParagraphText) | ||
}, | ||
tagKnob: { | ||
default: text('Html tag', 'div') | ||
} | ||
export default { | ||
title: 'Atoms/Paragraph', | ||
component: AParagraph | ||
} | ||
|
||
export const Default = () => ({ | ||
components: { AParagraph }, | ||
props: { | ||
textKnob: { | ||
default: text('Paragraph text', sampleParagraphText) | ||
} | ||
}, | ||
template: ` | ||
<a-paragraph> | ||
{{ textKnob }} | ||
</a-paragraph> | ||
` | ||
}) | ||
|
||
export const CustomTag = () => ({ | ||
components: { AParagraph }, | ||
props: { | ||
textKnob: { | ||
default: text('Paragraph text', sampleParagraphText) | ||
}, | ||
template: ` | ||
<a-paragraph :tag="tagKnob"> | ||
{{ textKnob }} | ||
</a-paragraph> | ||
` | ||
})) | ||
tagKnob: { | ||
default: text('Html tag', 'div') | ||
} | ||
}, | ||
template: ` | ||
<a-paragraph :tag="tagKnob"> | ||
{{ textKnob }} | ||
</a-paragraph> | ||
` | ||
}) |
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