@yamada-ui/react
Version:
React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion
1 lines • 1.08 kB
Source Map (JSON)
{"version":3,"file":"heading.cjs","names":["createComponent","headingStyle"],"sources":["../../../../src/components/heading/heading.tsx"],"sourcesContent":["\"use client\"\n\nimport type { HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { HeadingStyle } from \"./heading.style\"\nimport { createComponent } from \"../../core\"\nimport { headingStyle } from \"./heading.style\"\n\nexport interface HeadingProps\n extends HTMLStyledProps<\"h1\">,\n ThemeProps<HeadingStyle> {}\n\nconst {\n PropsContext: HeadingPropsContext,\n usePropsContext: useHeadingPropsContext,\n withContext,\n} = createComponent<HeadingProps, HeadingStyle>(\"heading\", headingStyle)\n\nexport { HeadingPropsContext, useHeadingPropsContext }\n\n/**\n * `Heading` is a component that represents section headings. By default, it renders an `h1` element.\n *\n * @see https://yamada-ui.com/docs/components/heading\n */\nexport const Heading = withContext(\"h1\")()\n"],"mappings":";;;;;;;AAWA,MAAM,EACJ,cAAc,qBACd,iBAAiB,wBACjB,gBACEA,yCAA4C,WAAWC,mCAAa;;;;;;AASxE,MAAa,UAAU,YAAY,KAAK,EAAE"}