diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-06-23 17:19:33 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-06-23 17:19:33 +0200 |
commit | 7a12132668fa959ab5c13767165d134d569c2b55 (patch) | |
tree | cc35a80e13804c87db36305da718c9171d4e6851 /src/components/Sidebar/SidebarButton.tsx | |
parent | Misc: Move type declaration to special folder (diff) | |
download | fs-tracer-frontend-7a12132668fa959ab5c13767165d134d569c2b55.tar.gz fs-tracer-frontend-7a12132668fa959ab5c13767165d134d569c2b55.tar.bz2 fs-tracer-frontend-7a12132668fa959ab5c13767165d134d569c2b55.zip |
Home: Add sidebar
Diffstat (limited to 'src/components/Sidebar/SidebarButton.tsx')
-rw-r--r-- | src/components/Sidebar/SidebarButton.tsx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/components/Sidebar/SidebarButton.tsx b/src/components/Sidebar/SidebarButton.tsx new file mode 100644 index 0000000..c29dfe4 --- /dev/null +++ b/src/components/Sidebar/SidebarButton.tsx @@ -0,0 +1,11 @@ +export default function SidebarButton(props: any) { + return ( + <div role="button" + className="flex items-center w-full p-3 leading-tight transition-all rounded-lg outline-none text-start hover:bg-blue-gray-50 hover:bg-opacity-80 hover:text-blue-gray-900 focus:bg-blue-gray-50 focus:bg-opacity-80 focus:text-blue-gray-900 active:bg-blue-gray-50 active:bg-opacity-80 active:text-blue-gray-900"> + <div className="grid mr-4 place-items-center"> + <i className={props.icon}></i> + </div> + <a href={props.href}>{props.name}</a> + </div > + ) +} |