diff --git a/packages/components/src/placeholder/stories/index.js b/packages/components/src/placeholder/stories/index.js new file mode 100644 index 00000000000000..b2dbcf24576bc4 --- /dev/null +++ b/packages/components/src/placeholder/stories/index.js @@ -0,0 +1,35 @@ +/** + * External dependencies + */ +import { boolean, text } from '@storybook/addon-knobs'; + +/** + * Internal dependencies + */ +import Placeholder from '../'; +import TextControl from '../../text-control'; + +export default { title: 'Components/Placeholder', component: Placeholder }; + +export const _default = () => { + const icon = text( 'Icon', 'smiley' ); + const instructions = text( 'Instructions', 'Here are instructions you should follow' ); + const label = text( 'Label', 'My Placeholder Label' ); + const isColumnLayout = boolean( 'isColumnLayout', false ); + + return ( + +
+ +
+
+ ); +}; diff --git a/storybook/test/__snapshots__/index.js.snap b/storybook/test/__snapshots__/index.js.snap index 801fd215521b46..8dfddc4bb32cde 100644 --- a/storybook/test/__snapshots__/index.js.snap +++ b/storybook/test/__snapshots__/index.js.snap @@ -4092,6 +4092,85 @@ exports[`Storyshots Components/Panel With Icon 1`] = ` `; +exports[`Storyshots Components/Placeholder Default 1`] = ` +
+