The Library Bookmarks · Notes · Snippets

← Back to the front page Filed

example globals.d.ts

typescript

interface UniversalComponentProps {
	/** Applies the classNames to the containing div of the component. **/
	className?: string;
	/** Sets the theme for the component. Defaults to `theme--light`. */
	theme?: "theme--light" | "theme--dark";
}

■