UNPKG

@yamada-ui/react

Version:

React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion

1 lines 959 B
{"version":3,"file":"kbd.cjs","names":["createComponent","kbdStyle"],"sources":["../../../../src/components/kbd/kbd.tsx"],"sourcesContent":["\"use client\"\n\nimport type { HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { KbdStyle } from \"./kbd.style\"\nimport { createComponent } from \"../../core\"\nimport { kbdStyle } from \"./kbd.style\"\n\nexport interface KbdProps\n extends HTMLStyledProps<\"kbd\">,\n ThemeProps<KbdStyle> {}\n\nconst {\n PropsContext: KbdPropsContext,\n usePropsContext: useKbdPropsContext,\n withContext,\n} = createComponent<KbdProps, KbdStyle>(\"kbd\", kbdStyle)\n\nexport { KbdPropsContext, useKbdPropsContext }\n\n/**\n * `Kbd` is a component that represents keyboard input.\n *\n * @see https://yamada-ui.com/docs/components/kbd\n */\nexport const Kbd = withContext(\"kbd\")()\n"],"mappings":";;;;;;;AAWA,MAAM,EACJ,cAAc,iBACd,iBAAiB,oBACjB,gBACEA,yCAAoC,OAAOC,2BAAS;;;;;;AASxD,MAAa,MAAM,YAAY,MAAM,EAAE"}