UNPKG

@wordpress/global-styles-ui

Version:
1 lines • 629 B
{"version":3,"file":"subtitle.cjs","names":["Heading"],"sources":["../src/subtitle.tsx"],"sourcesContent":["import { __experimentalHeading as Heading } from '@wordpress/components';\n\ninterface SubtitleProps {\n\tchildren: React.ReactNode;\n\tlevel?: 1 | 2 | 3 | 4 | 5 | 6;\n}\n\nexport function Subtitle( { children, level = 2 }: SubtitleProps ) {\n\treturn (\n\t\t<Heading className=\"global-styles-ui-subtitle\" level={ level }>\n\t\t\t{ children }\n\t\t</Heading>\n\t);\n}\n"],"mappings":";;;;;;;;AAOA,SAAgB,SAAU,EAAE,UAAU,QAAQ,KAAqB;CAClE,OACC,iBAAA,GAAA,kBAAA,IAAA,CAACA,sBAAAA,uBAAD;EAAS,WAAU;EAAoC;EACpD;CACM,CAAA;AAEX"}