From 47dee2cdbced7f519c1b8a140a66475677ca1219 Mon Sep 17 00:00:00 2001 From: Diana Mounter Date: Wed, 15 Nov 2017 12:38:44 -0500 Subject: [PATCH] add tooltip stories --- modules/primer-tooltips/stories.js | 82 ++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 modules/primer-tooltips/stories.js diff --git a/modules/primer-tooltips/stories.js b/modules/primer-tooltips/stories.js new file mode 100644 index 00000000..579876b3 --- /dev/null +++ b/modules/primer-tooltips/stories.js @@ -0,0 +1,82 @@ +import React from 'react' +import { storiesOf } from '@storybook/react' + +storiesOf('Tooltips', module) +.add('tooltipped direction', () => ( +
+ + Tooltip North + + + Tooltip North East + + + Tooltip East + + + Tooltip South East + + + Tooltip South + + + Tooltip South West + + + Tooltip West + + + Tooltip North West + +
+)) +.add('tooltip aligned', () => ( +
+ + Tooltip North East align left 1 + + + Tooltip North East align left 2 + + + Tooltip South East align left 1 + + + Tooltip South East align left 2 + + + Tooltip North West align right 1 + + + Tooltip North West align right 2 + + + Tooltip South West align right 1 + + + Tooltip South West align right 2 + +
+ )) + .add('tootlipped-multiline', () => ( +
+ + Tooltip with multiple lines + + + Tooltip with multiple lines + +
+ )) + .add('tootlip no delay', () => ( +
+ + Tooltip no delay + +
+ )) + .add('tooltip on button', () => ( +
+ +
+))