Skip to content

Commit

Permalink
[FEAT][FE] #134 : Header 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
leedongyull committed Nov 11, 2024
1 parent 3dc5d05 commit 7a33efe
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions frontend/src/component/Layout/Header.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import React, { ReactNode } from 'react';

interface IHeaderProps {
title?: string;
isTransparency?: boolean;
buttonElement?: ReactNode;
}

export const Header: React.FC<IHeaderProps> = ({ title, isTransparency, buttonElement }) => {
const background = isTransparency ? '' : 'bg-white';

return (
<header className={`w-full h-16 p-4 flex items-center ${background} text-black gap-[16px]`}>
{buttonElement}
<h1 className="text-base">{title}</h1>
</header>
);
};

0 comments on commit 7a33efe

Please sign in to comment.