diff --git a/apps/website/pages/components/heading/code.tsx b/apps/website/pages/components/heading/code.tsx new file mode 100644 index 0000000000..3759f0990a --- /dev/null +++ b/apps/website/pages/components/heading/code.tsx @@ -0,0 +1,17 @@ +import Head from "next/head"; +import type { ReactElement } from "react"; +import HeadingCodePage from "screens/components/heading/code/HeadingCodePage"; +import HeadingPageLayout from "screens/components/heading/HeadingPageLayout"; + +const Code = () => ( + <> +
+as prop. If no as{" "}
prop is provided, the tag of the heading is the the one corresponding to the value of the{" "}
level prop (for example, level 1 will render an h1 tag).
@@ -39,46 +47,40 @@ const sections = [
h1 through h6), supports visual
+ distinction via styles and weights, and plays a key role in SEO and accessibility. The component is flexible in
+ use, allowing control over styling and structure without breaking the logical order of information.
+ h1 heading to 12
+ pixels for the h6 level.
+ h1,
+ followed by h2-h6 for content hierarchy and structure.
+ h3, h4,{" "}
+ h5, h6 to title content within larger sections for better scannability.
+ h1 to{" "}
+ h4) unless there's a clear content structure that justifies it.
+ level prop to set visual style, and as to control the semantic tag:
+ {" "}
+ while we recommend following the defined levels and styles to maintain consistency, we understand that certain
+ interfaces may require customization. Use these props to adapt the component as needed and ensure semantic
+ meaning and structural clarity are preserved.
+ Headings-H1 is followed by an{" "}
+ Headings-H2, an Headings-H2 is followed by a Headings-H2 or{" "}
+ Headings-H3 and so on.
+ font-family
- font-family-sans
- font-weight
- font-weight-semibold
- font-size
- font-scale-07
- font-style
- font-normal
- letter-spacing
- font-tracking-tight-01
- font-family
- font-family-sans
- font-weight
- font-weight-semibold
- font-size
- font-scale-05
- font-style
- font-normal
- letter-spacing
- font-tracking-normal
- font-family
- font-family-sans
- font-weight
- font-weight-semibold
- font-size
- font-scale-04
- font-style
- font-normal
- letter-spacing
- font-tracking-normal
- font-family
- font-family-sans
- font-weight
- font-weight-semibold
- font-size
- font-scale-03
- font-style
- font-normal
- letter-spacing
- font-tracking-normal
- font-family
- font-family-sans
- font-weight
- font-weight-semibold
- font-size
- font-scale-02
- font-style
- font-normal
- letter-spacing
- font-tracking-normal
- Headings-H1 is followed by an{" "}
- Headings-H2, an Headings-H2 is followed by a Headings-H2 or{" "}
- Headings-H3 and so on.
- Headings-H1 and Headings-H3 give a user an overview of a page
- and how its content is structured. The Headings-H4 and Headings-H5 elements provide
- a quick understanding of the details in each section.
- <h1> heading to 14
- pixels for the <h5> level.
- Heading components from H1 to H5 when creating content
- hierarchy in the page.
-