-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ac4bd0c
commit 7efdcc8
Showing
33 changed files
with
641 additions
and
1,416 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,32 @@ | ||
import { DefaultSidebar, DefaultSidebarCode } from './variant/DefaultSidebar' | ||
import { SidebarWithContentSeparator, SidebarWithContentSeparatorCode } from './variant/SidebarWithContentSeparator' | ||
import { SidebarWithBranding, SidebarWithBrandingCode } from './variant/SidebarWithBranding' | ||
import { SidebarWithCTA, SidebarWithCTACode } from './variant/SidebarWithCTA' | ||
import { SidebarWithDropdown, SidebarWithDropdownCode } from './variant/SidebarWithDropdown' | ||
|
||
import { SidebarWithIcon, SidebarWithIconCode } from './variant/SidebarWithIcon' | ||
import { SidebarWithCart, SidebarWithCartCode } from './variant/SidebarWithCart' | ||
import CodePreview from '../../../components/CodePreview' | ||
|
||
## Table of Contents | ||
|
||
A Sidebar Component is a user interface element commonly found in web and mobile applications. It provides a dedicated space at the side of the main content area to display navigation links, menu items, or other relevant information. The sidebar is often used to help users navigate between different sections of the application, access important features, or view contextual details. | ||
The Sidebar Component is a user interface element commonly found in web and mobile applications. It provides a dedicated space at the side of the main content area to display navigation links, menu items, or other relevant information. | ||
|
||
## Default Sidebar | ||
|
||
The Default Sidebar component offers a versatile multi-level navigation menu enriched with icons and labels, catering to a seamless navigation experience. It requires icons sourced from an icon library package and easy setup within the `<Sidebar.Items>` component with appropriate props. | ||
A default sidebar with sidebar items and item icons. | ||
|
||
<CodePreview github="Sidebar" code={DefaultSidebarCode}> | ||
<DefaultSidebar /> | ||
</CodePreview> | ||
|
||
## Sidebar With Dropdown | ||
|
||
Craft dropdown menus within the sidebar using the `<Sidebar.Collapse>` component. This empowers you to provide sub-level navigation options for an organized user experience. | ||
|
||
<CodePreview github="Sidebar" code={SidebarWithDropdownCode}> | ||
<SidebarWithDropdown /> | ||
</CodePreview> | ||
|
||
## Sidebar With Logo Branding | ||
|
||
Infuse your brand identity by incorporating a brand logo into the sidebar using the `<Sidebar.Logo>` component. Customize the code snippet with your brand logo's URL. | ||
|
||
<CodePreview github="Sidebar" code={SidebarWithBrandingCode}> | ||
<SidebarWithBranding /> | ||
</CodePreview> | ||
|
||
## Sidebar With Content Separator | ||
## Sidebar With Icon | ||
|
||
Enhance content separation in the sidebar by employing separators. Divide your sidebar items into distinct groups using `<Sidebar.Group>` components. | ||
Display sidebar items with icons only. | ||
|
||
<CodePreview github="Sidebar" code={SidebarWithContentSeparatorCode}> | ||
<SidebarWithContentSeparator /> | ||
<CodePreview github="Sidebar" code={SidebarWithIconCode}> | ||
<SidebarWithIcon /> | ||
</CodePreview> | ||
|
||
## Sidebar With Call to Action | ||
## Sidebar With Cart | ||
|
||
Integrate compelling calls to action within the sidebar to engage users effectively. Utilize the `<Sidebar.CTA>` component for seamless incorporation. | ||
Utilize the sidebar as a product cart in an e-commerce website. | ||
|
||
<CodePreview github="Sidebar" code={SidebarWithCTACode}> | ||
<SidebarWithCTA /> | ||
<CodePreview github="Sidebar" code={SidebarWithCartCode}> | ||
<SidebarWithCart /> | ||
</CodePreview> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
216 changes: 149 additions & 67 deletions
216
app/docs/components/sidebar/variant/DefaultSidebar.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.