import React, { useState } from 'react';
import { States } from '../../utilities';
import { Text } from '../Text';
import { Stack } from '../Stack';
import { RadioButton } from '../RadioButton';
import { Checkbox, CheckboxProps } from './Checkbox';
export default { title: 'Components/Checkbox' };
export const Default = () => (
states={[
{},
{ checked: true },
{ defaultChecked: true },
{ children: 'Remember me' },
{ children: 'Remember me', checked: true },
{ children: 'Disabled', disabled: true },
{ children: 'Disabled', checked: true, disabled: true },
{ children: 'Filtering/Circle', checkIcon: 'circle' },
{ children: 'Disabled', checkIcon: 'circle', checked: true, disabled: true },
{ children: Important! }
]}
>
);
export const Check = () => {
const [checked, check] = useState(false);
return (
{checked ? 'Remembering' : 'Forgetting'}
) => {
check(event.target.checked);
}}
>
Remember me
);
};
const LONG_LABEL =
'Lorem ipsum dolor sit amet consectetur adipisicing elit. Amet rem at possimus ipsam cupiditate labore velit molestiae odio provident suscipit rerum minima, perferendis repellat vero recusandae quasi quos maxime incidunt!';
export const LongLabel = () => (
{LONG_LABEL}
);
export const StackExample = () => (
All Coats
Trench
Fur
Double Breasted
Leather
Cape
Down Coats
Parkas
Vest
);
export const LongStackExample = () => (
Menswear Newsletter
<>
Special Announcements
(Sale alerts, Moda Friends Events, and exclusive news)
>
Shopping Bag Reminders
<>
Emails from your Personal Stylist
(special event invitations and exclusive access)
>
Designer Announcements
<>
Trunkshow iOS Notification
(messages about your preferred designers from the MO app)
>
);
export const RadioComparison = () => (
Check
Radio
Check
Radio
);