Skip to content
Snippets Groups Projects
Commit 61e74df5 authored by Matt Kirby's avatar Matt Kirby
Browse files

Simple nav menu component

parent edf909e7
No related branches found
No related tags found
1 merge request!7Resolve "Adding basic post component"
import { FC, PropsWithChildren } from 'react';
import styles from '../../styles/NavMenuItem.module.css'
type NavMenuItemProps = {
label: string;
icon: any;
}
const NavMenuItem:FC<PropsWithChildren<NavMenuItemProps>> = ({
label,
icon
}) => {
return (
<div className={styles.menuItem}>
{icon}
<p className={styles.label}>{label}</p>
</div>
)
}
export default NavMenuItem;
\ No newline at end of file
.menuItem {
margin: 8px 0px;;
padding: 16px 24px;
/* color:rgb(100 116 139); */
border-radius: 32px;
border: 1px solid rgb(226 232 240);
white-space: nowrap;
display: flex;
align-items: center;
}
.label {
margin-left: 8px;
}
\ No newline at end of file
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