@yamada-ui/react
Version:
React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion
1 lines • 1.02 kB
Source Map (JSON)
{"version":3,"file":"code.cjs","names":["createComponent","codeStyle"],"sources":["../../../../src/components/code/code.tsx"],"sourcesContent":["\"use client\"\n\nimport type { HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { CodeStyle } from \"./code.style\"\nimport { createComponent } from \"../../core\"\nimport { codeStyle } from \"./code.style\"\n\nexport interface CodeProps\n extends HTMLStyledProps<\"code\">,\n ThemeProps<CodeStyle> {}\n\nconst {\n PropsContext: CodePropsContext,\n usePropsContext: useCodePropsContext,\n withContext,\n} = createComponent<CodeProps, CodeStyle>(\"code\", codeStyle)\n\nexport { CodePropsContext, useCodePropsContext }\n\n/**\n * `Code` is a component that represents a code block. By default, it renders a `code` element.\n *\n * @see https://yamada-ui.com/docs/components/code\n */\nexport const Code = withContext(\"code\")()\n"],"mappings":";;;;;;;AAWA,MAAM,EACJ,cAAc,kBACd,iBAAiB,qBACjB,gBACEA,yCAAsC,QAAQC,6BAAU;;;;;;AAS5D,MAAa,OAAO,YAAY,OAAO,EAAE"}