import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; type $RestProps = SvelteHTMLElements["div"]; type $Props = { /** * Truncate the title: `true` cuts it to one line with an ellipsis, and * a number clamps it to that many lines. * @default false */ titleTruncate?: boolean | number; /** * Specify the maximum width of the title, as any CSS width. * Only applies when `titleTruncate` is set. * @default "100%" */ maxWidth?: string; /** * Truncate the `labelChildren` slot. Takes the same values as `titleTruncate`. * @default false */ labelTruncate?: boolean | number; /** * Truncate the `description` slot. Takes the same values as * `titleTruncate`. * @default false */ descriptionTruncate?: boolean | number; /** * Specify the heading level of the title, to fit the page outline. * Inside a `Section`, defaults to one level below the section's heading; * otherwise to 3. */ headingLevel?: 1 | 2 | 3 | 4 | 5 | 6 | undefined; /** Text below the title, such as a date. */ description?: (this: void) => void; /** Text above the title, such as a category. */ labelChildren?: (this: void) => void; /** An icon after the title text. */ titleEnd?: (this: void) => void; /** An icon before the title text. */ titleStart?: (this: void) => void; children?: (this: void) => void; [key: `data-${string}`]: unknown; }; export type CardTitleProps = Omit<$RestProps, keyof $Props> & $Props; export default class CardTitle extends SvelteComponentTyped< CardTitleProps, Record, { default: Record; /** Text below the title, such as a date. */ description: Record; /** Text above the title, such as a category. */ labelChildren: Record; /** An icon after the title text. */ titleEnd: Record; /** An icon before the title text. */ titleStart: Record; } > {}