Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/_snippets/addon-a11y-config-in-preview.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default {

```ts filename=".storybook/preview.ts" renderer="common" language="ts"
// Replace your-framework with the framework you are using, e.g. react-vite, nextjs, vue3-vite, etc.
import { Preview } from '@storybook/your-framework';
import type { Preview } from '@storybook/your-framework';

const preview: Preview = {
parameters: {
Expand Down
2 changes: 1 addition & 1 deletion docs/_snippets/addon-a11y-config-rulesets-in-preview.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
```ts filename=".storybook/preview.ts" renderer="common" language="ts"
// Replace your-framework with the framework you are using, e.g. react-vite, nextjs, vue3-vite, etc.
import { Preview } from '@storybook/your-framework';
import type { Preview } from '@storybook/your-framework';

const preview: Preview = {
parameters: {
Expand Down
2 changes: 1 addition & 1 deletion docs/_snippets/addon-a11y-parameter-error-in-preview.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
```ts filename=".storybook/preview.ts" renderer="common" language="ts"
// Replace your-framework with the framework you are using, e.g. react-vite, nextjs, vue3-vite, etc.
import { Preview } from '@storybook/your-framework';
import type { Preview } from '@storybook/your-framework';

const preview: Preview = {
// ...
Expand Down
2 changes: 1 addition & 1 deletion docs/_snippets/addon-viewport-add-viewport-in-preview.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default {

```ts filename=".storybook/preview.ts" renderer="common" language="ts"
// Replace your-framework with the framework you are using, e.g. react-vite, nextjs, vue3-vite, etc.
import { Preview } from '@storybook/your-framework';
import type { Preview } from '@storybook/your-framework';

import { MINIMAL_VIEWPORTS } from 'storybook/viewport';

Expand Down
2 changes: 1 addition & 1 deletion docs/_snippets/addon-viewport-options-in-preview.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default {

```ts filename=".storybook/preview.ts" renderer="common" language="ts"
// Replace your-framework with the framework you are using, e.g. react-vite, nextjs, vue3-vite, etc.
import { Preview } from '@storybook/your-framework';
import type { Preview } from '@storybook/your-framework';

import { INITIAL_VIEWPORTS } from 'storybook/viewport';

Expand Down
2 changes: 1 addition & 1 deletion docs/_snippets/before-all-in-preview.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default {

```ts filename=".storybook/preview.ts" renderer="common" language="ts"
// Replace your-framework with the framework you are using, e.g. react-vite, nextjs, vue3-vite, etc.
import { Preview } from '@storybook/your-framework';
import type { Preview } from '@storybook/your-framework';

import { init } from '../project-bootstrap';

Expand Down
3 changes: 2 additions & 1 deletion docs/_snippets/before-each-in-preview.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ export default {

```ts filename=".storybook/preview.ts" renderer="common" language="ts"
// Replace your-framework with the framework you are using, e.g. react-vite, nextjs, vue3-vite, etc.
import { Preview } from '@storybook/your-framework';
import type { Preview } from '@storybook/your-framework';

import MockDate from 'mockdate';

const preview: Preview = {
Expand Down
2 changes: 1 addition & 1 deletion docs/_snippets/code-panel-enable-in-preview.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default {

```ts filename=".storybook/preview.ts" renderer="common" language="ts"
// Replace your-framework with the framework you are using (e.g., react-vite, vue3-vite, angular, etc.)
import { Preview } from '@storybook/your-framework';
import type { Preview } from '@storybook/your-framework';

const preview: Preview = {
parameters: {
Expand Down
Loading