Skip to content

Commit

Permalink
feat: make MenuLabel to provide spacing between sections (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
spleafy authored May 10, 2024
1 parent 3b66bd2 commit 23b3594
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/Menu/MenuLabel/MenuLabel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,21 @@ export type MenuLabelProps = PrismaneProps<
>;

const MenuLabel = forwardRef<HTMLDivElement, MenuLabelProps>(
({ color = "base", children, className, ...props }, ref) => {
({ color = "base", children, className, sx, ...props }, ref) => {
return (
<Flex
gap={fr(2)}
py={fr(0.5)}
px={fr(3)}
fs="sm"
cl={(theme) => (theme.mode === "dark" ? [color, 400] : [color, 600])}
bdc={(theme) => (theme.mode === "dark" ? ["base", 700] : ["base", 200])}
sx={{
"&:not(:first-child)": {
marginTop: fr(4),
},
...sx,
}}
className={strip(
`${
className ? className : ""
Expand Down

0 comments on commit 23b3594

Please sign in to comment.