-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathAuLoader.stories.js
45 lines (42 loc) · 984 Bytes
/
AuLoader.stories.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import { hbs } from 'ember-cli-htmlbars';
export default {
title: 'Components/Notifications/AuLoader',
argTypes: {
message: {
control: 'text',
description: 'Set the loading text',
},
inline: {
control: 'boolean',
description: 'Use the inline version of the loader',
},
hideMessage: {
control: 'boolean',
description: 'Hide the loading text',
},
centered: {
control: 'boolean',
description:
'Allows you to opt-out of the centered positioning. defaults to `true`',
},
},
parameters: {
layout: 'padded',
},
};
const Template = (args) => ({
template: hbs`
<AuLoader
@inline={{this.inline}}
@hideMessage={{this.hideMessage}}
@centered={{this.centered}}
>{{this.message}}</AuLoader>`,
context: args,
});
export const Component = Template.bind({});
Component.args = {
message: 'Aan het laden',
inline: false,
hideMessage: false,
centered: true,
};