import Clipboard from 'sentry/components/clipboard'; import Tooltip from 'sentry/components/tooltip'; export default { title: 'Utilities/Clipboard', component: Clipboard, args: { value: 'This will be copied to clipboard', }, argTypes: { onSuccess: {action: 'Copied to clipboard'}, onError: {action: 'Failed copy to clipboard'}, }, }; export const Default = ({...args}) => ( Click to Copy ); Default.storyName = 'Clipboard'; Default.parameters = { docs: { description: { story: 'Copy text to clipboard', }, }, }; export const WrapTooltip = ({...args}) => ( Click to Copy ); WrapTooltip.storyName = 'Clipboard wrapping tooltip';