mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-01 16:44:24 +00:00
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:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user