Skip to content
Discussion options

You must be logged in to vote

The ui prop on DashboardSidebarCollapse is typed as { base?: any } because the component is a thin wrapper. Its own theme only has base plus a side variant, and everything else gets forwarded to UButton with v-bind. That's why leadingIcon still works at runtime, it just isn't in the type anymore.

Two type-safe ways to do it.

If you're fine with the whole button scaling, use size. It's forwarded to the button, and the button theme bumps the icon along with it (size-4 at sm, size-5 at lg, size-6 at xl):

<UDashboardSidebarCollapse size="xl" />

If you only want the icon bigger, target it from class or ui.base. The collapse button has no label, so the icon is its only child:

<UDashboardSidebar…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@awais019
Comment options

Answer selected by awais019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants