mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-17 10:53:57 +01:00
20 lines
473 B
TypeScript
20 lines
473 B
TypeScript
import type { ComponentProps } from "react";
|
|||
|
|
import type { Space } from "../../types/space";
|
||
|
|
import { classNames } from "../../ui/classNames";
|
||
|
|
import styles from "./index.module.css";
|
||
|
|
|
||
|
|
interface Props extends ComponentProps<"div"> {
|
||
|
|
gap?: Space;
|
||
|
|
}
|
||
|
|
|
||
|
|
export function Flex({ children, className, gap, ...props }: Props) {
|
||
|
|
return (
|
||
|
|
<div
|
||
|
|
{...props}
|
||
|
|
className={classNames(styles.flex, className)}
|
||
|
|
data-gap={gap}
|
||
|
|
>
|
||
|
|
{children}
|
||
|
|
</div>
|
||
|
|
);
|
||
|
|
}
|