mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
35 lines
1005 B
TypeScript
35 lines
1005 B
TypeScript
import { type Preview, type AngularRenderer, moduleMetadata } from '@storybook/angular';
|
|
import { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field';
|
|
import { withThemeByClassName } from '@storybook/addon-themes';
|
|
|
|
const preview: Preview = {
|
|
parameters: {
|
|
docs: { inlineStories: true },
|
|
controls: { expanded: true },
|
|
layout: 'centered'
|
|
},
|
|
decorators: [
|
|
moduleMetadata({
|
|
providers: [
|
|
{
|
|
provide: MAT_FORM_FIELD_DEFAULT_OPTIONS,
|
|
useValue: {
|
|
appearance: 'outline'
|
|
}
|
|
}
|
|
]
|
|
}),
|
|
withThemeByClassName<AngularRenderer>({
|
|
themes: {
|
|
light: 'adf-storybook-light-theme',
|
|
dark: 'adf-storybook-dark-theme'
|
|
},
|
|
defaultTheme: 'light',
|
|
parentSelector: 'html'
|
|
})
|
|
],
|
|
tags: ['autodocs']
|
|
};
|
|
|
|
export default preview;
|