import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; export type ColumnSize = boolean | number; export type ColumnSizeDescriptor = { span?: ColumnSize; offset?: number; }; export type ColumnBreakpoint = ColumnSize | ColumnSizeDescriptor; 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 to `true` to remove the gutter * @default false */ noGutter?: boolean; /** * Set to `true` to remove the left gutter * @default false */ noGutterLeft?: boolean; /** * Set to `true` to remove the right gutter * @default false */ noGutterRight?: boolean; /** * Set to `true` to add top and bottom padding to the column * @default false */ padding?: boolean; /** * Specify the aspect ratio of the column. */ aspectRatio?: "2x1" | "2x3" | "16x9" | "9x16" | "1x2" | "4x3" | "3x4" | "3x2" | "1x1" | undefined; /** * Set the small breakpoint. */ sm?: ColumnBreakpoint | undefined; /** * Set the medium breakpoint. */ md?: ColumnBreakpoint | undefined; /** * Set the large breakpoint. */ lg?: ColumnBreakpoint | undefined; /** * Set the extra large breakpoint. */ xlg?: ColumnBreakpoint | undefined; /** * Set the maximum breakpoint. */ max?: ColumnBreakpoint | undefined; /** * Set the cross-axis self-alignment of the column within its row. */ align?: "start" | "center" | "end" | "stretch" | undefined; children?: (this: void, ...args: [{ props: { class: string; [key: string]: any; } }]) => void; [key: `data-${string}`]: unknown; }; export type ColumnProps = Omit<$RestProps, keyof $Props> & $Props; export default class Column extends SvelteComponentTyped< ColumnProps, Record, { default: { props: { class: string; [key: string]: any; } }; } > {}