Setup Config and Overrides for adding icons to Component/Drawer Item and optionally use in the outline items. #1319
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Attempting to close issue #1220
This pull request introduces support for custom icons in the component drawer and outline, allowing each component to specify its own icon via the
iconfield in its config. Documentation has been updated to reflect these changes, and several demo components now include custom icons. Additionally, new UI override options for the drawer container and items have been added, along with documentation for the newshowComponentIconsInOutlinefeature.Custom Component Icons
Added an
iconfield to multiple demo component configs (Button,Card,Flex,Grid,Heading,Hero,Logos,Space,Stats,Template,Text) to display custom icons in the drawer and outline. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]Updated the UI to support the new
showComponentIconsInOutlineprop, allowing toggling between custom and default icons. (apps/demo/app/[...puckPath]/client.tsxR45, [1] [2]Component Drawer Customization
drawerContaineranddrawerItem, enabling customization of the drawer layout and individual items. (apps/demo/app/[...puckPath]/client.tsxR66-R107, apps/docs/pages/docs/api-reference/overrides.mdxR23)Documentation Updates
iconfield for component configs and theshowComponentIconsInOutlineprop in the API reference and configuration docs. [1] [2] [3]Demo and Example Updates
lucide-react. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]Some optimizations might be needed.
2025-09-16.07-33-35.1.mp4
Rerendering in the video is due to an earlier change in the code.