Closed Raj4646 closed 20 hours ago
The update introduces Sidebar
and SidebarItem
components to the nextpy
library, enhancing its web interface capabilities. These components are now accessible and can be utilized to create customizable, sticky sidebars with multiple items for web applications, providing a structured and stylish navigation pane.
File Path | Change Summary |
---|---|
nextpy/__init__.py and nextpy/__init__.pyi |
Export Sidebar and SidebarItem entities; add imports for these from ...web.components . |
nextpy/.../components/chakra/__init__.py and .../chakra/layout/__init__.py |
Declare and export sidebar and sidebar_item for Chakra UI. |
nextpy/.../chakra/layout/sidebar.py |
Introduce functions for sidebar component creation, including styling and layout options. |
๐ฐโจ
A sidebar here, a sidebar there,
CodeRabbit hopped without a care.
Crafting menus so sleek and neat,
With items lined up, oh what a feat!
๐๐๐
Now your web's charm, with no compare,
Thanks to updates pulled from thin air.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Components -> xt.sidebar() - Parent element for the sidebar. Takes a prop "top", which can be the height of navbar or whatever needs to be rendered above it. xt.sidebar_item - It takes title and href and class_name for styling.
Summary by CodeRabbit
Sidebar
andSidebarItem
components for creating a sticky sidebar layout in web interfaces, with customizable properties such as width, top position, and styling options.