⬅️ Back to Table of Contents
📊 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
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
Interface Code
export interface InputLabelProps {
readonly children: React.ReactNode;
readonly name: string;
}
Properties
Name |
Type |
Optional |
Description |
children |
React.ReactNode |
✗ |
|
name |
string |
✗ |
|