MethodCard

When to use
A MethodCard per named method (e.g. M1, M2, M3) you’re defining or comparing. One per definition. Don’t use a bulleted list of definitions — use multiple cards.
Example
import MethodCard from '../../components/widgets/MethodCard.astro';
<MethodCard tag="M1" title="Per-token softmax">
<div class="method-eq">$$ p_i = \frac{\exp(z_i / \tau)}{\sum_j \exp(z_j / \tau)} $$</div>
Standard temperature-scaled softmax over per-token logits.
</MethodCard>
Props
| Prop | Type | Required | Notes |
|---|---|---|---|
tag | string | yes | Short uppercase id (≤ 3 chars). |
title | string | yes | One-line method name. |
eq | string | no | Display math (KaTeX, pre-rendered HTML). Prefer slot-based math (see example). |
expand | string | no | Optional follow-on expansion equation. |
The component body (slot) is the prose note describing the method.
When not to use
- For an inline mention of a method in prose. Use plain text.
- For a multi-step derivation. Use a code block or display math.
- For an unnamed observation. Use
Asideinstead.