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