{"version":3,"file":"Heading.mjs","sourceRoot":"","sources":["../../../src/jsx/components/Heading.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,yBAAqB;AAcnD,MAAM,IAAI,GAAG,SAAS,CAAC;AAEvB;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,mBAAmB,CAA4B,IAAI,CAAC,CAAC","sourcesContent":["import type { StringElement } from '../component';\nimport { createSnapComponent } from '../component';\n\n/**\n * The props of the {@link Heading} component.\n *\n * @property children - The text to display in the heading.\n * @property size - The size of the heading. Defaults to `sm`.\n * @category Component Props\n */\ntype HeadingProps = {\n  children: StringElement;\n  size?: 'sm' | 'md' | 'lg' | undefined;\n};\n\nconst TYPE = 'Heading';\n\n/**\n * A heading component, which is used to display heading text.\n *\n * @param props - The props of the component.\n * @param props.children - The text to display in the heading.\n * @param props.size - The size of the heading. Defaults to `sm`.\n * @returns A heading element.\n * @example\n * <Heading>Hello world!</Heading>\n * @example\n * <Heading size=\"lg\">Hello world!</Heading>\n * @category Components\n */\nexport const Heading = createSnapComponent<HeadingProps, typeof TYPE>(TYPE);\n\n/**\n * A heading element.\n *\n * @see {@link Heading}\n * @category Elements\n */\nexport type HeadingElement = ReturnType<typeof Heading>;\n"]}