Skip to content

Commit

Permalink
Restore proper Input stories file
Browse files Browse the repository at this point in the history
  • Loading branch information
ecraig12345 committed Jan 6, 2022
1 parent 2d64b80 commit 64449a9
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions packages/react-input/src/stories/Input.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import * as React from 'react';
import { Meta } from '@storybook/react';
import { Input } from '../index';

export * from './InputDefault.stories';
export * from './InputAppearance.stories';
export * from './InputContentBeforeAfter.stories';
export * from './InputDisabled.stories';
export * from './InputInline.stories';
export * from './InputPlaceholder.stories';
export * from './InputSize.stories';
export * from './InputType.stories';
export * from './InputUncontrolled.stories';
export * from './InputControlled.stories';

const meta: Meta = {
title: 'Components/Input',
component: Input,

decorators: [
(Story, context) => (
<div
style={{
...(context.viewMode === 'docs' && {
// docs mode has buttons on the bottom right which cover the input
// if it's allowed to be full width
maxWidth: '500px',
// and the corners of the rounded box clip the example
padding: '24px',
}),
}}
>
<Story />
</div>
),
],
};

export default meta;

0 comments on commit 64449a9

Please sign in to comment.