mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-25 13:46:07 +00:00
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