-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
10 changed files
with
90 additions
and
99 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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Header Menu | ||
|
||
<Description | ||
importExample="import { HeaderMenu } from '@smile/haring-react';" | ||
packageInfo={{ | ||
label: '@smile/haring-react', | ||
link: 'https://www.npmjs.com/package/@smile/haring-react', | ||
}} | ||
sourceInfo={{ | ||
link: 'https://github.com/Smile-SA/haring/blob/main/packages/haring-react/src/Components/HeaderMenu/HeaderMenu.tsx', | ||
}} | ||
storybookInfo="3-custom-components-headermenu--docs" | ||
> | ||
Renders a list of menus as either a horizontal list of NavLink components or a | ||
vertical SidebarMenu in mobile mode | ||
</Description> | ||
|
||
## Storybook Docs | ||
|
||
<StorybookEmbed storyId="3-custom-components-headermenu--docs" height="1210" /> | ||
|
||
## Props | ||
|
||
| Name | Type | Default | Description | | ||
| ----------------- | ---------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------ | | ||
| menus <required/> | `IHeaderMenuMenu<T>[]` | - | Array of menu objets to be rendered in vertical or horizontal lists | | ||
| isMobile | `boolean` | `false` | Determines if the menus will be displayed as a horizontal list of NavLink components (desktop) or as a vertical SidebarMenu (mobile) | | ||
| navLinkComponent | `ElementType` | `"a"` | Type of Element tag used for the NavLink components | | ||
|
||
## IHeaderMenuMenu | ||
|
||
`IHeaderMenuMenu` has a generic `T` that extend of `number | string` and it extend of `IMenuItem<T>` | ||
|
||
| Name | Type | Description | | ||
| -------- | ---------------------- | ------------------------------------------------ | | ||
| children | `IHeaderMenuMenu<T>[]` | Object array to be rendered in a header sub-menu | | ||
| url | `string` | the url of the navigation link | |
This file was deleted.
Oops, something went wrong.
10 changes: 5 additions & 5 deletions
10
docs/haring-react/components/info-card.mdx → docs/haring-react/components/info-box.mdx
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
29 changes: 13 additions & 16 deletions
29
...aring-react/components/menu-languages.mdx → ...haring-react/components/language-menu.mdx
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
10 changes: 5 additions & 5 deletions
10
...t/components/searchable-checkbox-list.mdx → ...ring-react/components/searchable-list.mdx
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