Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

368 B
Raw Blame
import { type ComponentProps, splitProps } from "solid-js";

export function WindowControlButton(props: ComponentProps<"button">) {
	const [local, otherProps] = splitProps(props, ["class", "children"]);

	return (
		<button
			class={`inline-flex cursor-default items-center justify-center ${local.class}`}
			{...otherProps}
		>
			{local.children}
		</button>
	);
}