Skip to content

⬅️ Back to Table of Contents

πŸ“„ ExplainerSpotlight

πŸ“Š Analysis Summary

Metric Count
πŸ”§ Functions 1
πŸ“¦ Imports 3
πŸ’  JSX Elements 4
πŸ“ Interfaces 1

πŸ“š Table of Contents

πŸ› οΈ File Location:

πŸ“‚ packages/website/src/components/home/ExplainerSpotlight/index.tsx

πŸ“¦ Imports

Name Source
Heading @theme/Heading
React react
styles ./styles.module.css

JSX Elements

Component Type Props Children
a element className={styles.explainerSpotlight}, href={href} ,
Heading component as="h3", className={styles.heading} {header},
span element className={styles.emoji} {emoji}
div element none {children}

Functions

ExplainerSpotlight({ children, emoji, header, href…: ExplainerSpotlightProps): React.JSX.Element

Parameters:

  • { children, emoji, header, href, } ExplainerSpotlightProps

Returns: React.JSX.Element

Code
export function ExplainerSpotlight({
  children,
  emoji,
  header,
  href,
}: ExplainerSpotlightProps): React.JSX.Element {
  return (
    <a className={styles.explainerSpotlight} href={href}>
      <Heading as="h3" className={styles.heading}>
        {header} <span className={styles.emoji}>{emoji}</span>
      </Heading>
      <div>{children}</div>
    </a>
  );
}

Interfaces

ExplainerSpotlightProps

Interface Code
export interface ExplainerSpotlightProps extends React.PropsWithChildren {
  header: string;
  emoji: string;
  href: string;
}

Properties

Name Type Optional Description
header string βœ— not shown
emoji string βœ— not shown
href string βœ— not shown

Generated by Syntax Scribe