diff --git a/packages/design/src/Components/Button.stories.tsx b/packages/design/src/Components/Button.stories.tsx new file mode 100644 index 00000000..67a3f4af --- /dev/null +++ b/packages/design/src/Components/Button.stories.tsx @@ -0,0 +1,64 @@ +import Button from './Button'; + +export default { + component: Button, + title: 'Components/Button', + tags: ['autodocs'], + }; + + export const Primary = { + args: { + props: { + id: '1', + label: 'Primary' + }, + }, + }; + + export const Secondary = { + args: { + props: { + id: '2', + label: 'Secondary', + secondary: true + }, + }, + }; + + export const Continue = { + args: { + props: { + id: '5', + label: 'Continue >>' + }, + }, + }; + + export const SaveContinue = { + args: { + props: { + id: '6', + label: 'Save & Continue >>' + }, + }, + }; + + export const Back = { + args: { + props: { + id: '7', + label: '<< Back', + textOnly: true + }, + }, + }; + + export const Cancel = { + args: { + props: { + id: '8', + label: 'Cancel', + textOnly: true + }, + }, + }; \ No newline at end of file diff --git a/packages/design/src/Components/Button.tsx b/packages/design/src/Components/Button.tsx new file mode 100644 index 00000000..28405aee --- /dev/null +++ b/packages/design/src/Components/Button.tsx @@ -0,0 +1,23 @@ +import classNames from 'classnames'; +import React from 'react'; + +export default function Button({ props: { + id, + label, + disabled, + secondary, + textOnly, + uswds +} }) { + + return ( + + ) +} diff --git a/packages/design/src/Components/Checkbox.stories.tsx b/packages/design/src/Components/Checkbox.stories.tsx new file mode 100644 index 00000000..e4327486 --- /dev/null +++ b/packages/design/src/Components/Checkbox.stories.tsx @@ -0,0 +1,25 @@ +import Checkbox from './Checkbox'; + +export default { + component: Checkbox, + title: 'Components/Checkbox', + tags: ['autodocs'], + }; + + export const Primary = { + args: { + props: { + id: '1', + label: 'Primary' + }, + }, + }; + + export const Secondary = { + args: { + props: { + id: '2', + label: 'Secondary' + }, + }, + }; \ No newline at end of file diff --git a/packages/design/src/Components/Checkbox.tsx b/packages/design/src/Components/Checkbox.tsx new file mode 100644 index 00000000..1998a8f0 --- /dev/null +++ b/packages/design/src/Components/Checkbox.tsx @@ -0,0 +1,26 @@ +import classNames from 'classnames'; +import React from 'react'; + +export default function Checkbox({ props: { + id, + label, + secondary, + uswds +} }) { + + return ( + +