import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; type $RestProps = SvelteHTMLElements["div"]; type $Props = { /** * Specify the kind of message. * An `"invalid"` message is announced with `role="alert"`. * @default "invalid" */ kind?: "invalid" | "warn"; /** * Set an id for the message element. * Inside a `FormItem`, defaults to `error-{controlId}` or * `warn-{controlId}` (`-1`, `-2`, and so on for later messages of the * same kind), and the item's control lists it in `aria-describedby`. * An invalid message also sets the control's `aria-invalid` while it's * mounted. */ id?: string | undefined; children?: (this: void) => void; [key: `data-${string}`]: unknown; }; export type FormRequirementProps = Omit<$RestProps, keyof $Props> & $Props; export default class FormRequirement extends SvelteComponentTyped< FormRequirementProps, Record, { default: Record } > {}