irradiant-svelte
Version:
Easily build sleek, minimalistic web apps with this easy to use and powerful svelte component library.
37 lines (30 loc) • 706 B
TypeScript
/// <reference types="svelte" />
export interface LegendProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["legend"]> {
/**
* User defined classes
* @default ""
*/
className?: string;
/**
* Disables all default styling, allowing you to further customize this component
* @default false
*/
styled?: boolean;
/**
* The component's color theme
* @default "dark"
*/
theme?: "light" | "dark";
/**
* Remove the border around the legend
* @default false
*/
borderless?: boolean;
}
export default class Legend {
$$prop_def: LegendProps;
$$slot_def: {
default: {};
};
$on(eventname: string, cb: (event: Event) => void): () => void;
}