storybook/docs/_snippets/storybook-addon-viewports-global-api.md
Norbert de Langen 0d7d389faf apply requested changes to docs
Co-authored-by: jonniebigodes <joaocontadesenvolvimento@gmail.com>
2024-07-29 11:47:02 +02:00

2.1 KiB

import type { Meta, StoryObj } from '@storybook/angular';

import { Button } from './button.component';

const meta: Meta<Button> = {
  component: Button,
};

export default meta;
type Story = StoryObj<Button>;

export const Large: Story = {
  global: {
    viewport: { value: 'phone', isRotated: false },
  },
};
import { Button } from './Button';

export default {
  component: Button,
};

export const Large = {
  global: {
    viewport: { value: 'phone', isRotated: false },
  },
};
// Replace your-framework with the name of your framework
import type { Meta, StoryObj } from '@storybook/your-framework';

import { Button } from './Button';

const meta = {
  component: Button,
} satisfies Meta<typeof Button>;

export default meta;
type Story = StoryObj<typeof meta>;

export const Large: Story = {
  global: {
    viewport: { value: 'phone', isRotated: false },
  },
};
// Replace your-framework with the name of your framework
import type { Meta, StoryObj } from '@storybook/your-framework';

import { Button } from './Button';

const meta: Meta<typeof Button> = {
  component: Button,
};

export default meta;
type Story = StoryObj<typeof Button>;

export const Large: Story = {
  global: {
    viewport: { value: 'phone', isRotated: false },
  },
};
export default {
  component: 'demo-button',
};

export const Large = {
  global: {
    viewport: { value: 'phone', isRotated: false },
  },
};
import type { Meta, StoryObj } from '@storybook/web-components';

const meta: Meta = {
  component: 'demo-button',
};

export default meta;
type Story = StoryObj;

export const Large: Story = {
  global: {
    viewport: { value: 'phone', isRotated: false },
  },
};