UNPKG

carbon-components-svelte

Version:
51 lines (41 loc) 979 B
import type { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; type RestProps = SvelteHTMLElements["input"]; export interface StructuredListInputProps extends RestProps { /** * Set to `true` to check the input * @default false */ checked?: boolean; /** * Specify the title of the input * @default "title" */ title?: string; /** * Specify the value of the input * @default "value" */ value?: string; /** * Set an id for the input element * @default "ccs-" + Math.random().toString(36) */ id?: string; /** * Specify a name attribute for the input * @default "" */ name?: string; /** * Obtain a reference to the input HTML element * @default null */ ref?: null | HTMLInputElement; [key: `data-${string}`]: any; } export default class StructuredListInput extends SvelteComponentTyped< StructuredListInputProps, Record<string, any>, {} > {}