Skip to content
Snippets Groups Projects
Commit df9d3c92 authored by Marcos Pieras's avatar Marcos Pieras Committed by Leonardo Christino
Browse files

chore: fix storybook docs information

parent aa4743ad
No related branches found
No related tags found
1 merge request!114Docs fix
Pipeline #130049 passed
......@@ -2,7 +2,8 @@ import { Meta, Unstyled } from '@storybook/blocks';
import { ColorPalette, ColorItem, IconGallery, IconItem, Canvas } from '@storybook/blocks';
import { Button } from '../buttons/.';
import { Text } from '../inputs/.';
import { TextInput } from '@graphpolaris/shared/lib/components/inputs';
import { Icon } from '../icon/.';
import {
......@@ -986,15 +987,7 @@ The general guide is to not use shadows in the components. However in inputs and
<div style={{ display: 'flex', justifyContent: 'center' }}>
<div className="w-52 m-5">
<Text
label="Username"
placeholder="Enter your username"
value=""
required={true}
errorText="Username is required"
validate={() => console.log('d')}
onChange={() => console.log('d')}
type="text"/>
<TextInput type="text" label="Text Label" value="" onChange={(value) => console.log(value)} />
</div>
</div>
......@@ -1005,3 +998,7 @@ To add a new component, include the following files:
- "index.tsx": component's code.
- "componentName.stories.tsx": Story's definition. On tag Meta defines the location of the component in the Storybook dashboard e.g.: title: 'Components/Button'
- "overview.mdx": Component's documentation.
```
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment