Skip to content
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

Add support for custom tooltip component in Popover #101

Open
zoghot opened this issue Sep 13, 2024 · 0 comments
Open

Add support for custom tooltip component in Popover #101

zoghot opened this issue Sep 13, 2024 · 0 comments

Comments

@zoghot
Copy link

zoghot commented Sep 13, 2024

It would be great to have the ability to customize the tooltip component in the Popover component. Currently, the Popover component has a predefined structure and style, which limits its flexibility. By allowing users to pass a custom tooltip component, we can enhance the versatility of the Popover component, making it more adaptable to various use cases.

Feature Request:

  • Add a new prop customTooltip to the Popover component.
  • The customTooltip prop should accept a React component that will be rendered inside the Popover.
  • Ensure that all existing functionality and styles are preserved when a custom tooltip is not provided.
  • Update the documentation to reflect this new feature.

Example Usage:

import { Popover } from 'concis';
import CustomTooltip from './CustomTooltip';

const MyComponent = () => (
  <Popover content={<CustomTooltip />} type="hover">
    <button>Hover me</button>
  </Popover>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant