mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-02-20 00:33:07 +01:00
46 lines
1.1 KiB
TypeScript
46 lines
1.1 KiB
TypeScript
import { Preview } from '@storybook/react';
|
|
import { INITIAL_VIEWPORTS } from 'storybook/viewport';
|
|
|
|
import { SHARED_DECORATORS } from '../decorators/decorators';
|
|
|
|
import './fonts.css';
|
|
|
|
const preview: Preview = {
|
|
parameters: {
|
|
controls: {
|
|
matchers: {
|
|
color: /(background|color)$/i,
|
|
date: /Date$/,
|
|
},
|
|
},
|
|
layout: 'fullscreen',
|
|
options: {
|
|
showPanel: true,
|
|
showInfo: true,
|
|
panelPosition: 'right',
|
|
},
|
|
|
|
viewport: {
|
|
options: INITIAL_VIEWPORTS,
|
|
},
|
|
},
|
|
initialGlobals: {
|
|
viewport: { value: 'iphonex', isRotated: false },
|
|
},
|
|
globalTypes: {
|
|
theme: {
|
|
defaultValue: 'standard',
|
|
toolbar: {
|
|
icon: 'circlehollow',
|
|
items: [
|
|
{ value: 'standard', icon: 'circlehollow', title: 'Standard' },
|
|
{ value: 'dark', icon: 'circle', title: 'Dark' },
|
|
],
|
|
},
|
|
},
|
|
},
|
|
decorators: [...SHARED_DECORATORS],
|
|
};
|
|
|
|
export default preview;
|