Skip to content

⬅️ Back to Table of Contents

📄 ActionLabel

📊 Analysis Summary

Metric Count
🔧 Functions 1
📦 Imports 2
💠 JSX Elements 2
📐 Interfaces 1

📚 Table of Contents

🛠️ File Location:

📂 packages/website/src/components/layout/ActionLabel.tsx

📦 Imports

Name Source
React react
styles ./InputLabel.module.css

JSX Elements

Component Type Props Children
button element className={styles.optionLabel}, onClick={props.onClick} ,
span element none {props.name}

Functions

ActionLabel(props: InputLabelProps): React.JSX.Element

Parameters:

  • props InputLabelProps

Returns: React.JSX.Element

Code
function ActionLabel(props: InputLabelProps): React.JSX.Element {
  return (
    <button className={styles.optionLabel} onClick={props.onClick}>
      <span>{props.name}</span>
      {props.children}
    </button>
  );
}

Interfaces

InputLabelProps

Interface Code
export interface InputLabelProps {
  readonly children: React.ReactNode;
  readonly name: string;
  readonly onClick: () => void;
}

Properties

Name Type Optional Description
children React.ReactNode not shown
name string not shown
onClick () => void not shown

Generated by Syntax Scribe