Skip to content

Commit

Permalink
chore(react): update stack and textinput playground (#12311)
Browse files Browse the repository at this point in the history
* chore(react): update stack playground

* chore(react): updated textinput playground

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
TannerS and kodiakhq[bot] committed Oct 19, 2022
1 parent 217ebca commit 2a13da6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 207 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import React from 'react';
import { Stack } from '../Stack';
import { Stack } from './Stack';

export default {
title: 'Layout/Stack',
Expand Down Expand Up @@ -45,19 +45,23 @@ export const Horizontal = () => {
);
};

const PlaygroundStory = (props) => {
export const Playground = (args) => {
return (
<Stack {...props}>
<Stack {...args}>
<div>Item 1</div>
<div>Item 2</div>
<div>Item 3</div>
</Stack>
);
};

export const Playground = PlaygroundStory.bind({});

Playground.argTypes = {
as: {
control: {
type: 'text',
},
defaultValue: 'div',
},
gap: {
options: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
control: {
Expand Down
199 changes: 0 additions & 199 deletions packages/react/src/components/TextInput/TextInput-story.js

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 FluidForm from '../../FluidForm';
import { default as TextInput, TextInputSkeleton } from '../../TextInput';
import { Layer } from '../../Layer';
import FluidForm from '../FluidForm';
import { default as TextInput, TextInputSkeleton } from '../TextInput';
import { Layer } from '../Layer';

export default {
title: 'Components/TextInput',
Expand Down

0 comments on commit 2a13da6

Please sign in to comment.