You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Continuing from @GarvitSinghal47 's work in #596 - KToolTip is another component that would be great to have examples for.
Guidance
Props
I think that providing an example demonstrating each prop would be suitable.
How to go about that is a bit open-ended, but a typical use of tooltips in Kolibri is when hovering a KIconButton to provide additional context.
So - one idea is to create a row of KIconButtons for things like "Edit", "Delete" , "Fullscreen".
Slot
I am not sure how best to demonstrate the default slot, however. I think that, typically, we don't want to use tooltips for anything except for providing context with text so I don't think we need to demonstrate using this.
Ideas?
I invite all additional suggestions in the comments.
The text was updated successfully, but these errors were encountered:
To give examples of the slot, I think we can say that we can use this if we want more flexibility on the content styles of the tooltip. For example if we want to emphasize something, apply a <em> or <strong> tags, or if we want to add a header <h*> tag to the tooltip, etc.
Overview
Continuing from @GarvitSinghal47 's work in #596 - KToolTip is another component that would be great to have examples for.
Guidance
Props
I think that providing an example demonstrating each prop would be suitable.
How to go about that is a bit open-ended, but a typical use of tooltips in Kolibri is when hovering a
KIconButton
to provide additional context.So - one idea is to create a row of KIconButtons for things like "Edit", "Delete" , "Fullscreen".
Slot
I am not sure how best to demonstrate the default slot, however. I think that, typically, we don't want to use tooltips for anything except for providing context with text so I don't think we need to demonstrate using this.
Ideas?
I invite all additional suggestions in the comments.
The text was updated successfully, but these errors were encountered: