mirror of https://github.com/status-im/consul.git
47 lines
876 B
Plaintext
47 lines
876 B
Plaintext
import { Meta, Story, Canvas } from '@storybook/addon-docs/blocks';
|
|
import { hbs } from 'ember-cli-htmlbars';
|
|
|
|
<Meta title="Components/Notice" component="Notice" />
|
|
|
|
# Notice
|
|
|
|
<Canvas>
|
|
<Story name="Basic"
|
|
argTypes={{
|
|
type: {
|
|
defaultValue: 'success',
|
|
control: {
|
|
type: 'select',
|
|
options: [
|
|
'success',
|
|
'warning',
|
|
'info',
|
|
'highlight',
|
|
]
|
|
}
|
|
}
|
|
}}
|
|
>{(args) => ({
|
|
template: hbs`<Notice
|
|
@type={{type}}
|
|
as |notice|>
|
|
<notice.Header>
|
|
<h3>Header</h3>
|
|
</notice.Header>
|
|
<notice.Body>
|
|
<p>
|
|
Body
|
|
</p>
|
|
</notice.Body>
|
|
<notice.Footer>
|
|
<p>
|
|
Footer
|
|
</p>
|
|
</notice.Footer>
|
|
</Notice>`,
|
|
context: args
|
|
})}
|
|
</Story>
|
|
</Canvas>
|
|
|