m3-svelte
Version:
M3 Svelte implements the Material 3 design system in Svelte. See the [website](https://ktibow.github.io/m3-svelte/) for demos and usage instructions.
17 lines (16 loc) • 596 B
TypeScript
import type { HTMLButtonAttributes, HTMLAnchorAttributes, HTMLLabelAttributes } from "svelte/elements";
import type { Snippet } from "svelte";
type ActionProps = ({
for: string;
} & HTMLLabelAttributes) | ({
href: string;
} & HTMLAnchorAttributes) | HTMLButtonAttributes;
type Props = {
variant?: "elevated" | "filled" | "tonal" | "outlined" | "text";
square?: boolean;
iconType?: "none" | "left" | "full";
children: Snippet;
} & ActionProps;
declare const Button: import("svelte").Component<Props, {}, "">;
type Button = ReturnType<typeof Button>;
export default Button;