UNPKG

@arashaltafi/react-toast

Version:
37 lines (36 loc) 1.22 kB
var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; import React from 'react'; import ShowTooltip from '../components/Tooltip'; export default { title: 'Components/Tooltip', component: ShowTooltip, argTypes: { children: { control: 'text', description: 'Content to display inside the tooltip trigger', }, content: { control: 'text', description: 'Content to display inside the tooltip', }, }, }; var Template = function (args) { return (React.createElement("div", { style: { color: 'red', width: '100%', height: '100vh', display: 'flex', justifyContent: 'center', alignItems: 'center' } }, React.createElement(ShowTooltip, __assign({}, args), args.children))); }; export var Default = Template.bind({}); Default.args = { children: 'children', content: 'content message', };