Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
node_modules
.cache
dist
storybook-static
storybook-static
session.vim

40 changes: 18 additions & 22 deletions example/index.tsx
Original file line number Diff line number Diff line change
@@ -1,32 +1,28 @@
import 'react-app-polyfill/ie11';
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { IconButton } from '../';
import { Tooltip } from '../';
import { Select, Tooltip } from '../';

const options = [
{ value: 'chocolate', label: 'Chocolate' },
{ value: 'strawberry', label: 'Strawberry' },
{ value: 'vanilla', label: 'Vanilla' },
];

const App = () => {
const [value, setValue] = React.useState('');

return (
<div style={{ padding: 100 }}>
<h1>Tooltips </h1>
<br />
<Tooltip title="Wow to the top" placement="top">
Tooltip on the Top
</Tooltip>
<br />
<br />
<Tooltip title="Wow to the bottom" placement="bottom">
Tooltip on the Bottom
</Tooltip>
<br />
<br />
<Tooltip title="Wow to the left" placement="left">
Tooltip on the Left
</Tooltip>
<br />
<br />
<Tooltip title="Wow to the right" placement="right">
Tooltip on the Right
</Tooltip>
<Select
options={options}
hint="Hint is optional"
size={'comfortable'}
isMulti={false}
value={value}
setValue={setValue}
disabled={false}
/>
</div>
);
};
Expand Down
Loading