📄 AlertBlock¶
📊 Analysis Summary¶
| Metric | Count |
|---|---|
| 🔧 Functions | 1 |
| 📦 Imports | 1 |
| 💠 JSX Elements | 2 |
| 📐 Interfaces | 1 |
📚 Table of Contents¶
🛠️ File Location:¶
📂 packages/website/src/components/layout/AlertBlock.tsx
📦 Imports¶
| Name | Source |
|---|---|
React |
react |
JSX Elements¶
| Component | Type | Props | Children |
|---|---|---|---|
div |
element | className={admonition alert alert--${props.type}} |
|
div |
element | className="admonition-content" | {props.children} |
Functions¶
AlertBlock(props: AlertBlockProps): React.JSX.Element¶
Parameters:
propsAlertBlockProps
Returns: React.JSX.Element
Code
Interfaces¶
AlertBlockProps¶
Interface Code
Properties¶
| Name | Type | Optional | Description |
|---|---|---|---|
children |
React.ReactNode |
✗ | not shown |
type |
'danger' \| 'info' \| 'note' \| 'success' \| 'warning' |
✗ | not shown |
Generated by Syntax Scribe