Skip to content

⬅️ Back to Table of Contents

📄 InputLabel.tsx

📊 Analysis Summary

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

📚 Table of Contents

🛠️ File Location:

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

📦 Imports

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

JSX Elements

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

Functions

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

Code
function InputLabel(props: InputLabelProps): React.JSX.Element {
  return (
    <label className={styles.optionLabel}>
      <span>{props.name}</span>
      {props.children}
    </label>
  );
}
  • Parameters:
  • props: InputLabelProps
  • Return Type: React.JSX.Element

Interfaces

InputLabelProps

Interface Code
export interface InputLabelProps {
  readonly children: React.ReactNode;
  readonly name: string;
}

Properties

Name Type Optional Description
children React.ReactNode
name string