Skip to content

Comments

add React.CSSProperties type annotation to SidebarProvider style example#9587

Merged
shadcn merged 1 commit intoshadcn-ui:mainfrom
romeu-maleiane:fix/add-type-to-SidebarProvider-style-example
Feb 16, 2026
Merged

add React.CSSProperties type annotation to SidebarProvider style example#9587
shadcn merged 1 commit intoshadcn-ui:mainfrom
romeu-maleiane:fix/add-type-to-SidebarProvider-style-example

Conversation

@romeu-maleiane
Copy link
Contributor

This PR adds the React.CSSProperties type annotation to the style prop in the SidebarProvider example, improving type safety and developer experience.

Changes:

  • Cast the inline style object to React.CSSProperties to eliminate TypeScript type errors when specifying CSS custom properties (--sidebar-width and --sidebar-width-mobile)

Related to: Issue #9566

@vercel
Copy link
Contributor

vercel bot commented Feb 8, 2026

@romeu-maleiane is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

@shadcn shadcn merged commit f9de81f into shadcn-ui:main Feb 16, 2026
2 of 3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants