mirror of https://github.com/status-im/consul.git
39 lines
702 B
Plaintext
39 lines
702 B
Plaintext
|
import { Meta, Story, Canvas } from '@storybook/addon-docs/blocks';
|
||
|
import { hbs } from 'ember-cli-htmlbars';
|
||
|
|
||
|
<Meta title="Components/ErrorState" />
|
||
|
|
||
|
# ErrorState
|
||
|
|
||
|
<Canvas>
|
||
|
<Story
|
||
|
name="Basic"
|
||
|
argTypes={{
|
||
|
allowLogin: {
|
||
|
defaultValue: true,
|
||
|
control: {
|
||
|
type: 'boolean'
|
||
|
}
|
||
|
},
|
||
|
status: {
|
||
|
defaultValue: '403',
|
||
|
control: {
|
||
|
type: 'select',
|
||
|
options: [
|
||
|
'404',
|
||
|
'403',
|
||
|
'500'
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
}}
|
||
|
>{(args) => ({
|
||
|
template: hbs`<ErrorState
|
||
|
@allowLogin={{allowLogin}}
|
||
|
@error={{hash status=status}}
|
||
|
/>`,
|
||
|
context: args
|
||
|
})}
|
||
|
</Story>
|
||
|
</Canvas>
|