<practice-match :@q="({"id":"1.2","kind":"match","prompt":"Match each element to what it is.","why":"Each element names one kind of content.","bank":[{"letter":"A","text":"A list of links","draggable":"true"},{"letter":"B","text":"The page's footer","draggable":"true"}],"dragDrop":true,"items":[{"text":"`nav`","answer":"A","bank":[{"letter":"A","text":"A list of links","draggable":"true"},{"letter":"B","text":"The page's footer","draggable":"true"}],"drop":"true","name":"1.2-match-0","index":"0"},{"text":"`footer`","answer":"B","bank":[{"letter":"A","text":"A list of links","draggable":"true"},{"letter":"B","text":"The page's footer","draggable":"true"}],"drop":"true","name":"1.2-match-1","index":"1"}],"answers":{"items":["A","B"]},"sources":[]})"></practice-match>
Copy {name} to clipboardCopyCopiedCopy failedhtml code
Props
Write them with the @ prefix, and :@ for an expression. A prop in square brackets is optional.
Name
Type
Description
q
object
a prepared match question
Color tokens
The tokens this component's styles read. Set one in _data/theme.json to change it everywhere.
Pick a color to try it in every example above.
Token
Colors
Try a color
--color-accent
Brand color: fills, buttons, rules, the masthead wash
--color-border
Lines, rules and borders
--color-error
Error: wrong answers, failures
--color-page
Page background
--color-surface
Raised or alternate surface: cards, table headers, code