-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: [PE-578] Add new variant to the
Tag
component (#255)
## Short description This PR adds a new `Tag` variant that allows the passing of custom icon props such as icon name and icon color, making this component more flexible and dynamic as showed in the following case: https://www.figma.com/file/yOoBGDr1MJpa0LY5lDUFSd/IOapp_CartaGiovaniNazionale?type=design&node-id=4405-100552&mode=design&t=YXJlUj57xQtDYAm8-4 ## List of changes proposed in this pull request - Added a new variant name `customIcon` - Added a new prop `customIconProps` which is required when the variant is `customIcon` ## Preview ![image](https://github.com/pagopa/io-app-design-system/assets/34343582/ba9cba5d-d678-4ad0-ae47-f0fa927ce151)
- Loading branch information
Showing
2 changed files
with
92 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters