consul/ui/packages/consul-ui/app/components/app-error
John Cowen 83c0c364df 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:43 +00:00
..
README.stories.mdx ui: Move AppError and ErrorState to glimmer components (#9095) 2020-11-06 09:24:43 +00:00
index.hbs ui: Move AppError and ErrorState to glimmer components (#9095) 2020-11-06 09:24:43 +00:00

README.stories.mdx

import { Meta, Story, Canvas } from '@storybook/addon-docs/blocks';
import { hbs } from 'ember-cli-htmlbars';

<Meta title="Components/AppError" />

# AppError

<Canvas>
  <Story
    name="Basic"
    argTypes={{
      status: {
        defaultValue: '404',
        control: {
          type: 'select',
          options: [
            '404',
            '403',
            '500'
          ]
        }
      }
    }}
  >{(args) => ({
    template: hbs`<AppError @error={{hash status=status}} />`,
    context: args
  })}
  </Story>
</Canvas>