Skip to content

Commit

Permalink
docs(densitycontainer): remove FormControl from overview story
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanLeece committed Jan 10, 2024
1 parent 914e586 commit c484ddd
Showing 1 changed file with 0 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
Heading,
Text,
} from '@contentful/f36-components';
import { FormControl, TextInput } from '@contentful/f36-forms/src';
import { PlusIcon } from '@contentful/f36-icons';
import { type Density } from '@contentful/f36-utils';

Expand Down Expand Up @@ -88,35 +87,6 @@ const Components = [
},
],
},
{
name: 'FormControl',
component: ({ isRequired, isInvalid, withError, size, name }) => (
<FormControl isRequired={isRequired} isInvalid={isInvalid}>
<FormControl.Label>{name}</FormControl.Label>
<TextInput size={size} />
{withError && (
<FormControl.ValidationMessage>Error</FormControl.ValidationMessage>
)}
<FormControl.HelpText>Please enter a value</FormControl.HelpText>
</FormControl>
),
props: [
{
isRequired: true,
isInvalid: true,
withError: true,
size: 'medium',
name: 'Medium input',
},
{
isRequired: true,
isInvalid: true,
withError: true,
size: 'small',
name: 'Small input',
},
],
},
];

const toStartCase = (s) => s.charAt(0).toUpperCase() + s.substring(1);
Expand Down

0 comments on commit c484ddd

Please sign in to comment.