livechat / design-system

LiveChat design system components
https://design.livechat.com
27 stars 9 forks source link

[Tooltip] - Interactive tooltip types #817

Open MrVorgoth opened 1 year ago

MrVorgoth commented 1 year ago

Description

I wanted to use icon inside primaryButton prop inside Interactive tooltip component, however I stumbled upon such props: handleClick / label / kind (optional). I thought I will be able to just use any other Button component inside primaryButton prop, but I couldn't do it. Can you type that any ReactNode can go there?

Also I wonder why it was designed to have <Interactive /> component placed inside <Tooltip /> component. As a developer I thought I would use it the same way I use normal tooltip: <InteractiveTooltip (all props from normal tooltip + props from interactive tooltip />. Can you think about such implementation?

UPDATE: Please also export a TooltipButton type.

vladko-uxds commented 3 weeks ago

Improve storybook doc : how to use formfield +input