mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
UI Components
This commit is contained in:
3
components/Navbar/Navbar.module.css
Normal file
3
components/Navbar/Navbar.module.css
Normal file
@@ -0,0 +1,3 @@
|
||||
.root {
|
||||
@apply flex justify-between items-center px-4 py-5;
|
||||
}
|
22
components/Navbar/Navbar.tsx
Normal file
22
components/Navbar/Navbar.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
import cn from "classnames";
|
||||
import { FunctionComponent } from "react";
|
||||
import s from "./Navbar.module.css";
|
||||
import { Logo } from "ui";
|
||||
interface Props {
|
||||
className?: string;
|
||||
children?: any;
|
||||
}
|
||||
|
||||
const Navbar: FunctionComponent<Props> = ({ className }) => {
|
||||
const rootClassName = cn(s.root, className);
|
||||
return (
|
||||
<div className={rootClassName}>
|
||||
<Logo />
|
||||
<div>SEARCH BAR</div>
|
||||
<div>Menu list bar</div>
|
||||
<div>Menu Icon bar</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Navbar;
|
1
components/Navbar/index.ts
Normal file
1
components/Navbar/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export { default } from "./Navbar";
|
1
components/index.ts
Normal file
1
components/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export { default as Navbar } from "./Navbar";
|
Reference in New Issue
Block a user