Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

how to intract with flowbite-react sidebar dynamically? #1496

Unanswered
ponv asked this question in Q&A
Discussion options

how to intract with flowbite sidebar dynamically
?
because i noticed that the sidebarcontext is not exposed

return (
<Sidebar.Items>
<Sidebar.ItemGroup>
<Sidebar.Item href="#" icon={HiChartPie}>
Dashboard
</Sidebar.Item>
ExtensionSlot name="demo-sidebar-slot" element
</Sidebar.ItemGroup>
</Sidebar.Items>

);

here ExtensionSlot , returns Sidebar item element dynamically. It fails with message " fails with useSidebarContext should be used within the SidebarContext provider!, ".

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /