carbon-components-svelte
Version:
Svelte implementation of the Carbon Design System
24 lines (19 loc) • 643 B
TypeScript
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type $RestProps = SvelteHTMLElements["form"];
type $Props = {
[key: `data-${string}`]: any;
};
export type FluidFormProps = Omit<$RestProps, keyof $Props> & $Props;
export default class FluidForm extends SvelteComponentTyped<
FluidFormProps,
{
click: WindowEventMap["click"];
keydown: WindowEventMap["keydown"];
mouseover: WindowEventMap["mouseover"];
mouseenter: WindowEventMap["mouseenter"];
mouseleave: WindowEventMap["mouseleave"];
submit: WindowEventMap["submit"];
},
{ default: {} }
> {}