Fix TS variants and polish snippets

This commit is contained in:
jonniebigodes 2023-04-27 12:07:20 +01:00
parent 9887c20cd2
commit 97204734d6
4 changed files with 4 additions and 6 deletions

View File

@ -16,4 +16,4 @@ export const globalTypes = {
},
},
};
```
```

View File

@ -7,15 +7,14 @@ import { Preview } from '@storybook/your-framework';
const preview: Preview = {
globalTypes: {
theme: {
name: 'Theme',
description: 'Global theme for components',
defaultValue: 'light',
toolbar: {
// The label to show for this toolbar item
title: 'Theme',
icon: 'circlehollow',
// Array of plain string values or MenuItem shape (see below)
items: ['light', 'dark'],
// Property that specifies if the name of the item will be displayed
showName: true,
// Change title based on selected value
dynamicTitle: true,
},

View File

@ -17,4 +17,4 @@ export const globalTypes = {
},
},
};
```
```

View File

@ -7,7 +7,6 @@ import { Preview } from '@storybook/your-framework';
const preview: Preview = {
globalTypes: {
locale: {
name: 'Locale',
description: 'Internationalization locale',
defaultValue: 'en',
toolbar: {