Merge pull request #9587 from romeu-maleiane/fix/add-type-to-SidebarProvider-style-example

add React.CSSProperties type annotation to SidebarProvider style example
This commit is contained in:
shadcn
2026-02-16 23:34:04 +04:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -151,7 +151,7 @@ For multiple sidebars in your application, you can use the `--sidebar-width` and
style={{
"--sidebar-width": "20rem",
"--sidebar-width-mobile": "20rem",
}}
} as React.CSSProperties}
>
<Sidebar />
</SidebarProvider>

View File

@@ -151,7 +151,7 @@ For multiple sidebars in your application, you can use the `--sidebar-width` and
style={{
"--sidebar-width": "20rem",
"--sidebar-width-mobile": "20rem",
}}
} as React.CSSProperties}
>
<Sidebar />
</SidebarProvider>