@chakra-ui/react#HeadingProps TypeScript Examples

The following examples show how to use @chakra-ui/react#HeadingProps. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Heading.tsx    From website with MIT License 5 votes vote down vote up
H2: React.FC<HeadingProps> = ({ children, ...rest }) => (
  <Heading mb={2} as="h2" size="xl" fontWeight={DEFAULT_HEADING_WEIGHT} {...rest}>
    {children}
  </Heading>
)
Example #2
Source File: Heading.tsx    From website with MIT License 5 votes vote down vote up
H3: React.FC<HeadingProps> = ({ children, ...rest }) => (
  <Heading mb={2} as="h3" size="lg" fontWeight={DEFAULT_HEADING_WEIGHT} {...rest}>
    {children}
  </Heading>
)
Example #3
Source File: Heading.tsx    From website with MIT License 5 votes vote down vote up
H4: React.FC<HeadingProps> = ({ children, ...rest }) => (
  <Heading mb={2} as="h4" size="md" fontWeight={DEFAULT_HEADING_WEIGHT} {...rest}>
    {children}
  </Heading>
)
Example #4
Source File: Heading.tsx    From website with MIT License 5 votes vote down vote up
H5: React.FC<HeadingProps> = ({ children, ...rest }) => (
  <Heading mb={2} as="h5" size="md" fontWeight={DEFAULT_HEADING_WEIGHT} {...rest}>
    {children}
  </Heading>
)
Example #5
Source File: Heading.tsx    From website with MIT License 5 votes vote down vote up
H6: React.FC<HeadingProps> = ({ children, ...rest }) => (
  <Heading mb={2} as="h6" size="md" fontWeight={DEFAULT_HEADING_WEIGHT} {...rest}>
    {children}
  </Heading>
)