mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-14 21:26:08 +01:00
feat: recently viewed
This commit is contained in:
1 parent
7399c402af
commit
49f84db473
8 files changed
+86
-7
No files matched your search
@@ -11,4 +11,8 @@
|
||||
flex-direction: column;
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
&[data-first="true"] .content {
|
||||
padding-top: var(--space-6);
|
||||
}
|
||||
}
|
||||
@@ -2,13 +2,17 @@ import type { ComponentProps } from "react";
|
||||
import { classNames } from "../../core/ui/classNames";
|
||||
import "./index.css";
|
||||
|
||||
export function Section({
|
||||
className,
|
||||
children,
|
||||
...props
|
||||
}: ComponentProps<"div">) {
|
||||
export interface SectionProps extends ComponentProps<"div"> {
|
||||
first?: boolean;
|
||||
}
|
||||
|
||||
export function Section({ className, children, ...props }: SectionProps) {
|
||||
return (
|
||||
<div className={classNames("section", className)} {...props}>
|
||||
<div
|
||||
data-first={props.first}
|
||||
className={classNames("section", className)}
|
||||
{...props}
|
||||
>
|
||||
<div className="content">{children}</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user