defactor-com / ui-kit

A Collection of FrontEnd Components for Defactor User Interfaces :nut_and_bolt:
https://ui-kit.defactor.dev
Apache License 2.0
1 stars 0 forks source link

CardWithHover Improvements #384

Open pzagardedukic opened 4 months ago

pzagardedukic commented 4 months ago

Tasks:

onClickCopy: Triggered when a copy action is initiated. onClickPreview: Triggered when the preview option is selected. onClickUse: Triggered when the use option is selected.

Ensure that these handlers are optional props and provide default implementations that can be easily overridden. Icon Customization:

Implementation Notes: Use Material-UI theming conventions to ensure that the component remains consistent with the rest of the application’s design. Include PropTypes for new props to ensure proper usage and integrate seamlessly with existing types. Provide examples in the documentation on how to customize the background color and icons. Acceptance Criteria: The background color should change according to the specified prop with a sensible default. onClickCopy, onClickPreview, and onClickUse must function correctly and should log actions to the console if no other handlers are provided. Icons should be customizable in terms of the component used and its color, and this should be demonstrated in the storybook with at least three variations. Please ensure all code changes are accompanied by unit tests that verify both the existing and new functionality.

pzagardedukic commented 3 months ago
          backgroundColor={theme.palette.background.paper}