consul/ui/packages/consul-ui/app/components/error-state
John Cowen 848f72f66a
ui: Move AppError and ErrorState to glimmer components (#9095)
* ui: move AppError and ErrorState to glimmer components

* yarn.lock changes
2020-11-06 09:24:17 +00:00
..
README.stories.mdx ui: Move AppError and ErrorState to glimmer components (#9095) 2020-11-06 09:24:17 +00:00
index.hbs ui: Move AppError and ErrorState to glimmer components (#9095) 2020-11-06 09:24:17 +00:00
index.js ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00

README.stories.mdx

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>