Back to Storybook

Addon A11y Parameter Todo In Meta

docs/_snippets/addon-a11y-parameter-todo-in-meta.md

10.3.66.8 KB
Original Source
ts
import { Meta } from '@storybook/angular';

import { DataTable } from './data-table.component';

const meta: Meta<DataTable> = {
  component: DataTable,
  parameters: {
    // ๐Ÿ‘‡ This component's accessibility tests will not fail
    //    Instead, they display warnings in the Storybook UI
    a11y: { test: 'todo' },
  },
};
export default meta;
ts
import preview from '../.storybook/preview';

import { DataTable } from './data-table.component';

const meta = preview.meta({
  component: DataTable,
  parameters: {
    // ๐Ÿ‘‡ This component's accessibility tests will not fail
    //    Instead, they display warnings in the Storybook UI
    a11y: { test: 'todo' },
  },
});
ts
// Replace your-framework with the framework you are using, e.g. react-vite, nextjs, vue3-vite, etc.
import { Meta } from '@storybook/your-framework';

import { DataTable } from './DataTable';

const meta = {
  component: DataTable,
  parameters: {
    // ๐Ÿ‘‡ This component's accessibility tests will not fail
    //    Instead, they display warnings in the Storybook UI
    a11y: { test: 'todo' },
  },
} satisfies Meta<typeof DataTable>;
export default meta;
js
import { DataTable } from './DataTable';

export default {
  component: DataTable,
  parameters: {
    // ๐Ÿ‘‡ This component's accessibility tests will not fail
    //    Instead, they display warnings in the Storybook UI
    a11y: { test: 'todo' },
  },
};
svelte
<script module>
  import { defineMeta } from '@storybook/addon-svelte-csf';

  import DataTable from './DataTable.svelte';

  const { Story } = defineMeta({
    component: DataTable,
    parameters: {
      // ๐Ÿ‘‡ This component's accessibility tests will not fail
      //    Instead, they display warnings in the Storybook UI
      a11y: { test: 'todo' },
    },
  });
</script>
ts
// Replace your-framework with the framework you are using, e.g. sveltekit or svelte-vite
import type { Meta } from '@storybook/your-framework';

import DataTable from './DataTable.svelte';

const meta = {
  component: DataTable,
  parameters: {
    // ๐Ÿ‘‡ This component's accessibility tests will not fail
    //    Instead, they display warnings in the Storybook UI
    a11y: { test: 'todo' },
  },
} satisfies Meta<typeof DataTable>;
export default meta;
svelte
<script module>
  import { defineMeta } from '@storybook/addon-svelte-csf';

  import DataTable from './DataTable.svelte';

  const { Story } = defineMeta({
    component: DataTable,
    parameters: {
      // ๐Ÿ‘‡ This component's accessibility tests will not fail
      //    Instead, they display warnings in the Storybook UI
      a11y: { test: 'todo' },
    },
  });
</script>
js
import DataTable from './DataTable.svelte';

export default {
  component: DataTable,
  parameters: {
    // ๐Ÿ‘‡ This component's accessibility tests will not fail
    //    Instead, they display warnings in the Storybook UI
    a11y: { test: 'todo' },
  },
};
ts
import { Meta } from '@storybook/web-components-vite';

const meta: Meta<DataTable> = {
  component: 'demo-data-table',
  parameters: {
    // ๐Ÿ‘‡ This component's accessibility tests will not fail
    //    Instead, they display warnings in the Storybook UI
    a11y: { test: 'todo' },
  },
};
export default meta;
js
export default {
  component: 'demo-data-table',
  parameters: {
    // ๐Ÿ‘‡ This component's accessibility tests will not fail
    //    Instead, they display warnings in the Storybook UI
    a11y: { test: 'todo' },
  },
};
js
import preview from '../.storybook/preview';

const meta = preview.meta({
  component: 'demo-data-table',
  parameters: {
    // ๐Ÿ‘‡ This component's accessibility tests will not fail
    //    Instead, they display warnings in the Storybook UI
    a11y: { test: 'todo' },
  },
});
ts
import preview from '../.storybook/preview';

const meta = preview.meta({
  component: 'demo-data-table',
  parameters: {
    // ๐Ÿ‘‡ This component's accessibility tests will not fail
    //    Instead, they display warnings in the Storybook UI
    a11y: { test: 'todo' },
  },
});
ts
import preview from '../.storybook/preview';

import { DataTable } from './DataTable';

const meta = preview.meta({
  component: DataTable,
  parameters: {
    // ๐Ÿ‘‡ This component's accessibility tests will not fail
    //    Instead, they display warnings in the Storybook UI
    a11y: { test: 'todo' },
  },
});
<!-- JS snippets still needed while providing both CSF 3 & Next -->
js
import preview from '../.storybook/preview';

import { DataTable } from './DataTable';

const meta = preview.meta({
  component: DataTable,
  parameters: {
    // ๐Ÿ‘‡ This component's accessibility tests will not fail
    //    Instead, they display warnings in the Storybook UI
    a11y: { test: 'todo' },
  },
});
ts
import preview from '../.storybook/preview';

import DataTable from './DataTable.vue';

const meta = preview.meta({
  component: DataTable,
  parameters: {
    // ๐Ÿ‘‡ This component's accessibility tests will not fail
    //    Instead, they display warnings in the Storybook UI
    a11y: { test: 'todo' },
  },
});
<!-- JS snippets still needed while providing both CSF 3 & Next -->
js
import preview from '../.storybook/preview';

import DataTable from './DataTable.vue';

const meta = preview.meta({
  component: DataTable,
  parameters: {
    // ๐Ÿ‘‡ This component's accessibility tests will not fail
    //    Instead, they display warnings in the Storybook UI
    a11y: { test: 'todo' },
  },
});