UnlyEd/next-right-now

View on GitHub
src/stories/nrn/a11y/example.stories.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import { Meta } from '@storybook/react/types-6-0';
import React from 'react';

export default {
  title: 'Next Right Now/A11y/Button (default example)',
  parameters: {
    controls: {
      hideNoControlsWarning: true,
    },
  },
} as Meta;

export const accessible = (): JSX.Element => <button>Accessible button</button>;

export const inaccessible = (): JSX.Element => (
  <button
    style={{
      backgroundColor: 'red',
      color: 'darkRed',
    }}
  >Inaccessible button</button>
);