m3-svelte
Version:
M3 Svelte implements the Material 3 design system in Svelte. See the [website](https://kendell.dev/m3-svelte/) for demos and usage instructions.
21 lines (20 loc) • 729 B
TypeScript
import type { Snippet } from "svelte";
import type { HTMLLabelAttributes } from "svelte/elements";
import type { ButtonAttrs, AnchorAttrs, DivAttrs, NotButton, NotLink } from "../misc/typing-utils";
type NotLabel<T> = T & {
label?: false;
};
type ActionProps = NotLabel<ButtonAttrs> | NotLabel<AnchorAttrs> | (NotLink<NotButton<HTMLLabelAttributes>> & {
label: true;
}) | NotLabel<DivAttrs>;
type $$ComponentProps = {
leading?: Snippet;
overline?: string;
headline?: string;
supporting?: string;
trailing?: Snippet;
lines?: number;
} & ActionProps;
declare const ListItem: import("svelte").Component<$$ComponentProps, {}, "">;
type ListItem = ReturnType<typeof ListItem>;
export default ListItem;