pstream is dead; long live pstream taciturnaxolotl.github.io/pstream-ng/
at main 63 lines 1.3 kB view raw
1interface TextProps { 2 className?: string; 3 children: React.ReactNode; 4 border?: boolean; 5} 6 7const borderClass = "pb-4 border-b border-utils-divider border-opacity-50"; 8 9export function Heading1(props: TextProps) { 10 return ( 11 <h1 12 className={[ 13 "text-3xl lg:text-5xl font-bold text-white mb-9", 14 props.border ? borderClass : null, 15 props.className ?? "", 16 ].join(" ")} 17 > 18 {props.children} 19 </h1> 20 ); 21} 22 23export function Heading2(props: TextProps) { 24 return ( 25 <h2 26 className={[ 27 "text-xl lg:text-2xl font-bold text-white mt-20 mb-9", 28 props.border ? borderClass : null, 29 props.className ?? "", 30 ].join(" ")} 31 > 32 {props.children} 33 </h2> 34 ); 35} 36 37export function Heading3(props: TextProps) { 38 return ( 39 <h2 40 className={[ 41 "text-lg lg:text-xl font-bold text-white mb-3", 42 props.border ? borderClass : null, 43 props.className ?? "", 44 ].join(" ")} 45 > 46 {props.children} 47 </h2> 48 ); 49} 50 51export function Paragraph(props: TextProps) { 52 return ( 53 <p 54 className={[ 55 "text-type-text my-9 font-medium", 56 props.border ? borderClass : null, 57 props.className ?? "", 58 ].join(" ")} 59 > 60 {props.children} 61 </p> 62 ); 63}