Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

557 B
Raw Blame
import { classNames } from "@cap/utils/helpers";
import type { ReactNode } from "react";
import { EYEBROW, INK } from "./theme";

export const Eyebrow = ({
	children,
	accent = "#8DBCF0",
	color = INK,
	className,
}: {
	children: ReactNode;
	accent?: string;
	color?: string;
	className?: string;
}) => (
	<p
		className={classNames(
			EYEBROW,
			"inline-flex items-center gap-2.5",
			className,
		)}
		style={{ color }}
	>
		<span
			aria-hidden="true"
			className="inline-block size-[7px]"
			style={{ background: accent }}
		/>
		{children}
	</p>
);