UNPKG

carbon-components-svelte

Version:
45 lines (36 loc) 1.12 kB
import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; type $RestProps = SvelteHTMLElements["label"]; type $Props = { /** * Set to `true` to use as a header * @default false */ head?: boolean; /** * Set to `true` to render a label slot * @default false */ label?: boolean; /** * Specify the tabindex. * @deprecated no longer applied here -- the row's own `<label>` isn't * a tab stop anymore. Set `tabindex` on `StructuredListInput` instead, * which now owns focus for the selectable row. * @default "0" */ tabindex?: number | string | undefined; children?: (this: void) => void; [key: `data-${string}`]: unknown; }; export type StructuredListRowProps = Omit<$RestProps, keyof $Props> & $Props; export default class StructuredListRow extends SvelteComponentTyped< StructuredListRowProps, { click: WindowEventMap["click"]; mouseenter: WindowEventMap["mouseenter"]; mouseleave: WindowEventMap["mouseleave"]; mouseover: WindowEventMap["mouseover"]; }, { default: Record<string, never> } > {}