Skip to content

Commit

Permalink
feat: allow panel to receive props such as className from outside
Browse files Browse the repository at this point in the history
  • Loading branch information
corp-0 committed Mar 8, 2024
1 parent c2f8d98 commit 0d7d26e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/common/uiLibrary/panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ interface PanelProps extends LayoutChildren {
}

export default function Panel(props: PanelProps) {
const { children, solid } = props;
const { children, solid, ...rest } = props;
const className = classNames(
"mx-auto w-full px-10 py-10 mb-8 format format-sm sm:format-base lg:format-lg format-invert bg-gray-900",{
"bg-opacity-75": !solid,
}
},
rest.className
);

return (
Expand Down

0 comments on commit 0d7d26e

Please sign in to comment.