Skip to content

Commit

Permalink
docs(storybook): add controls to combo-box and codesnippet (#11607)
Browse files Browse the repository at this point in the history
* docs(storybook): add controls to combo-box and codesnippet

* chore(code-snippet): remove old story file

* chore(storybook): removed commented out code

* chore(storybook): update control options

Co-authored-by: Josh Black <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Jun 17, 2022
1 parent 2f003d4 commit 379366b
Show file tree
Hide file tree
Showing 6 changed files with 158 additions and 386 deletions.
220 changes: 0 additions & 220 deletions packages/react/src/components/CodeSnippet/CodeSnippet-story.js

This file was deleted.

14 changes: 0 additions & 14 deletions packages/react/src/components/CodeSnippet/CodeSnippet-story.scss

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
*/

import React from 'react';
import { default as CodeSnippet, CodeSnippetSkeleton } from '../';
import { Layer } from '../../Layer';
import mdx from '../CodeSnippet.mdx';
import { default as CodeSnippet, CodeSnippetSkeleton } from '.';
import { Layer } from '../Layer';
import mdx from './CodeSnippet.mdx';

export default {
title: 'Components/CodeSnippet',
Expand Down Expand Up @@ -220,3 +220,32 @@ export const Skeleton = () => (
<CodeSnippetSkeleton type="multi" />
</div>
);

export const Playground = (args) => (
<CodeSnippet feedback="Copied to clipboard" {...args}>
{'node -v'}
</CodeSnippet>
);

Playground.argTypes = {
ariaLabel: {
table: {
disable: true,
},
},
children: {
table: {
disable: true,
},
},
onClick: {
table: {
disable: true,
},
},
type: {
table: {
disable: true,
},
},
};
Loading

0 comments on commit 379366b

Please sign in to comment.