Skip to content
Snippets Groups Projects
Commit fec71550 authored by Tojo's avatar Tojo
Browse files

add menu mobile on doc core

parent c4744733
No related merge requests found
......@@ -70,6 +70,9 @@ export function Search(props: SearchProps): JSX.Element;
interface IMenu {}
export function Menu(props: IMenu): JSX.Element;
interface IMenuMobile {}
export function MenuMobile(props: IMenu): JSX.Element;
interface Ilogo {
to?: string;
className?: string;
......
......@@ -21,3 +21,6 @@ export { default as Logo } from "./src/components/core/Logo";
// Menu components
export { default as Menu } from "./src/components/core/Menu";
// Menu components
export { default as MenuMobile } from "./src/components/core/MenuMobile";
import React from 'react'
import { Content } from "@onegeo/gatsby-theme-onegeo";
import { Menu } from "@onegeo/gatsby-theme-onegeo";
import { Menu, MenuMobile } from "@onegeo/gatsby-theme-onegeo";
import { Link } from "gatsby";
const menu = () => {
......@@ -45,8 +45,18 @@ const menu = () => {
<h2>Example</h2>
</div>
<div className="flex gap-6 m-4">
<Menu />
<div className='mt-5'>
<h3 className='underline underline-offset-1'>Menu classique</h3>
<div className="flex gap-6 m-4">
<Menu />
</div>
</div>
<div>
<h3 className='underline underline-offset-1'>Menu mobile</h3>
<div className="flex gap-6 m-4">
<MenuMobile />
</div>
</div>
</Content>
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment