'use client'; import { PolymorphicComponentProps } from '@kalink-ui/dibbly'; import { assignInlineVars } from '@vanilla-extract/dynamic'; import { ElementType } from 'react'; import { coverVars, CoverVariants } from './cover.css'; import { coverResponsive } from './cover.responsive'; import type { Responsive } from '../../styles/responsive'; export type CoverProps = PolymorphicComponentProps & Omit & { /** * The minimum height of the cover */ minSize?: string; spacing?: Responsive>; }; /** * A custom element for covering a block-level element horizontally, * with a max-width value representing the typographic measure. * * The element that should be towards the vertical center of the space * is identified with a simple `data-cover-center` attribute. * * https://every-layout.dev/layouts/cover */ export function Cover({ spacing, minSize, className, ...props }: CoverProps) { const { use: Comp = 'div', ...rest } = props; return ( ); }