import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; export type CarbonCssGridContext = Record; 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 drop the leading gutter of each column, so content * hangs 16px into it. Takes precedence over `condensed`. * @default false */ narrow?: boolean; /** * Set to `true` to collapse the gutter to 1px * @default false */ condensed?: boolean; /** * Set to `true` to remove the maximum width. * Ignored on a nested grid. * @default false */ fullWidth?: boolean; /** * Set to `true` to add a row gap that matches the gutter * @default false */ withRowGap?: boolean; /** * Set the inline alignment of a grid narrower than its container. * Ignored on a nested grid. * @default "center" */ align?: "start" | "center" | "end"; children?: (this: void, ...args: [{ props: { class: string; [key: string]: any; } }]) => void; [key: `data-${string}`]: unknown; }; export type CssGridProps = Omit<$RestProps, keyof $Props> & $Props; export default class CssGrid extends SvelteComponentTyped< CssGridProps, Record, { default: { props: { class: string; [key: string]: any; } }; } > {}