UNPKG

@vela-ui/react

Version:

Vela UI React components

16 lines (14 loc) 502 B
// src/components/kbd.tsx import { Keyboard } from "react-aria-components"; import { tv } from "tailwind-variants"; import { jsx } from "react/jsx-runtime"; var KbdVariants = tv({ base: "text-muted-foreground inline-flex min-w-5 items-center justify-center rounded-sm border p-1 font-sans text-xs leading-none tracking-widest" }); function Kbd({ className, ...props }) { return /* @__PURE__ */ jsx(Keyboard, { className: KbdVariants({ className }), ...props }); } export { KbdVariants, Kbd };