import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; export type CssColumnPercent = "25%" | "50%" | "75%" | "100%"; export type CssColumnDescriptor = { /** Columns to span */ span?: number | CssColumnPercent; /** Columns to skip before this one */ offset?: number; /** Grid line to start at */ start?: number; /** Grid line to end at */ end?: number; }; export type CssColumnBreakpoint = boolean | number | CssColumnPercent | CssColumnDescriptor; type $RestProps = SvelteHTMLElements["div"]; type $Props = { /** * Set to `true` to render a custom HTML element. * Props are destructured as `props` in the default slot. * @example * ```svelte * *
Content
*
* ``` * @default false */ as?: boolean; /** * Set the span, offset, start or end at every breakpoint. */ span?: CssColumnBreakpoint | undefined; /** * Set the small breakpoint (4 columns). */ sm?: CssColumnBreakpoint | undefined; /** * Set the medium breakpoint (8 columns). */ md?: CssColumnBreakpoint | undefined; /** * Set the large breakpoint (16 columns). */ lg?: CssColumnBreakpoint | undefined; /** * Set the extra large breakpoint (16 columns). */ xlg?: CssColumnBreakpoint | undefined; /** * Set the maximum breakpoint (16 columns). */ max?: CssColumnBreakpoint | undefined; /** * Set the block-axis alignment of the column in its row, as on `Column`. * A column stretches to the height of its row by default. */ align?: "start" | "center" | "end" | "stretch" | undefined; children?: (this: void, ...args: [{ props: { class: string; [key: string]: any; } }]) => void; [key: `data-${string}`]: unknown; }; export type CssColumnProps = Omit<$RestProps, keyof $Props> & $Props; export default class CssColumn extends SvelteComponentTyped< CssColumnProps, Record, { default: { props: { class: string; [key: string]: any; } }; } > {}