-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Info component #2949
Info component #2949
Conversation
@timothyhoward I think you were waiting for the DataTable version of this! |
@hughess Amazing work! This is just what I've been after! 🎉 |
@mcrascal nice thanks! Those look perfect |
@hughess This component already exists: https://github.com/evidence-dev/evidence/blob/next/packages/ui/core-components/src/lib/atoms/hint/Hint.svelte |
For posterity, this component needs to live separately from |
Info component overflow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
assume we should add prop to the docs for supported components?
Description
Adds an Info component which can be used standalone within markdown to display a tooltip, or within components to display information when a
description
prop is used.Components covered:
Note on Charts, DataTable, and DimensionGrid
It's difficult to find a suitable place for the info icon that does not visually clutter a chart. The recommended approach before we have a built-in way to do this (via a
description
prop) is to do one of the following:<Info/>
component in that line so it appears with the title<Input/>
component above or below the chartStandalone example
BigValue
DataTable Columns
Value
Slider
Dropdown
ButtonGroup
Alert
Accordion
To Do
className
propdescription
prop to docs for relevant components + example usageChecklist