β¬ οΈ 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
Properties¶
| Name | Type | Optional | Description |
|---|---|---|---|
header |
string |
β | not shown |
emoji |
string |
β | not shown |
href |
string |
β | not shown |
Generated by Syntax Scribe