carbon-components-svelte
Version:
Svelte implementation of the Carbon Design System
32 lines (25 loc) • 791 B
TypeScript
import { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type $RestProps = SvelteHTMLElements["form"];
type $Props = {
/**
* Obtain a reference to the form element.
* @default null
*/
ref?: null | HTMLFormElement;
children?: (this: void) => void;
[key: `data-${string}`]: unknown;
};
export type FormProps = Omit<$RestProps, keyof $Props> & $Props;
export default class Form extends SvelteComponentTyped<
FormProps,
{
click: WindowEventMap["click"];
keydown: WindowEventMap["keydown"];
mouseenter: WindowEventMap["mouseenter"];
mouseleave: WindowEventMap["mouseleave"];
mouseover: WindowEventMap["mouseover"];
submit: WindowEventMap["submit"];
},
{ default: Record<string, never> }
> {}