Files
NapCatQQ/.pnpm-store/v3/files/50/71c1e4f60653b654e5bdb5ddd1df90ad3519c14d3a015f1946a9d04c0505fe19317e93b56c86afeaa594d2e2ba120b8fc6ea66b0a30d04b774cdaca60e957e
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

52 lines
2.0 KiB
Plaintext

import * as tailwind_variants from 'tailwind-variants';
import { VariantProps } from 'tailwind-variants';
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
/**
* Keyboard Key wrapper **Tailwind Variants** component
*
* @example
*
* const { base, abbr, content } = kbd()
*
* <kbd className={base()} >
* <abbr title="Command" className={abbr()}>⌘</abbr>
* <abbr title="Shift" className={abbr()}>⇧</abbr>
* <abbr title="Control" className={abbr()}>⌃</abbr>
* <abbr title="Option" className={abbr()}>⌥</abbr>
* <abbr title="Enter" className={abbr()}>↵</abbr>
* <abbr title="Delete" className={abbr()}>⌫</abbr>
* <abbr title="Escape" className={abbr()}>⎋</abbr>
* <abbr title="Tab" className={abbr()}>⇥</abbr>
* <abbr title="Caps Lock" className={abbr()}>⇪</abbr>
* <abbr title="Up" className={abbr()}>↑</abbr>
* <abbr title="Right" className={abbr()}>→</abbr>
* <abbr title="Down" className={abbr()}>↓</abbr>
* <abbr title="Left" className={abbr()}>←</abbr>
* <abbr title="Page Up" className={abbr()}>⇞</abbr>
* <abbr title="Page Down" className={abbr()}>⇟</abbr>
* <abbr title="Home" className={abbr()}>↖</abbr>
* <abbr title="End" className={abbr()}>↘</abbr>
* <abbr title="Help" className={abbr()}>?</abbr>
* <abbr title="Space" className={abbr()}>␣</abbr>
* <span className={content()}>A</span>
* </kbd>
*/
declare const kbd: tailwind_variants.TVReturnType<{}, {
base: string[];
abbr: string;
content: string;
}, undefined, tailwind_variants_dist_config.TVConfig<{}, {}>, {}, {
base: string[];
abbr: string;
content: string;
}, tailwind_variants.TVReturnType<{}, {
base: string[];
abbr: string;
content: string;
}, undefined, tailwind_variants_dist_config.TVConfig<{}, {}>, unknown, unknown, undefined>>;
type KbdVariantProps = VariantProps<typeof kbd>;
type KbdSlots = keyof ReturnType<typeof kbd>;
export { KbdSlots, KbdVariantProps, kbd };