SentencePair

SentencePair screenshot

When to use

To show two (or more) short text variants side by side, each tagged with a short identifier (A, B, C1, …). Typical use: minimal-pair stimuli, prompt rewrites, or contrastive examples where the reader scans the variants together.

Example

import SentencePair from '../../components/widgets/SentencePair.astro';

<SentencePair blocks={[
  { id: "A", text: "The lawyer who hired the assistant called the client." },
  { id: "B", text: "The lawyer who the assistant hired called the client." },
]} />

Props

PropTypeRequiredNotes
blocksBlock[]yesArray of { id, text } blocks; rendered in order.

Block shape:

FieldTypeRequiredNotes
idstringyesShort tag rendered as a leading badge (A, B, etc.).
textstringyesThe sentence body. Plain string only — no markdown.

When not to use