Skip to content
course-kit
Menu

<practice-match>

A match question: a lettered bank and items that each take a letter.

Practice worksheets

Examples

Match question

Color scheme
Width

Open on its own

Source
<practice-match :@q="({&quot;id&quot;:&quot;1.2&quot;,&quot;kind&quot;:&quot;match&quot;,&quot;prompt&quot;:&quot;Match each element to what it is.&quot;,&quot;why&quot;:&quot;Each element names one kind of content.&quot;,&quot;bank&quot;:[{&quot;letter&quot;:&quot;A&quot;,&quot;text&quot;:&quot;A list of links&quot;,&quot;draggable&quot;:&quot;true&quot;},{&quot;letter&quot;:&quot;B&quot;,&quot;text&quot;:&quot;The page's footer&quot;,&quot;draggable&quot;:&quot;true&quot;}],&quot;dragDrop&quot;:true,&quot;items&quot;:[{&quot;text&quot;:&quot;`nav`&quot;,&quot;answer&quot;:&quot;A&quot;,&quot;bank&quot;:[{&quot;letter&quot;:&quot;A&quot;,&quot;text&quot;:&quot;A list of links&quot;,&quot;draggable&quot;:&quot;true&quot;},{&quot;letter&quot;:&quot;B&quot;,&quot;text&quot;:&quot;The page's footer&quot;,&quot;draggable&quot;:&quot;true&quot;}],&quot;drop&quot;:&quot;true&quot;,&quot;name&quot;:&quot;1.2-match-0&quot;,&quot;index&quot;:&quot;0&quot;},{&quot;text&quot;:&quot;`footer`&quot;,&quot;answer&quot;:&quot;B&quot;,&quot;bank&quot;:[{&quot;letter&quot;:&quot;A&quot;,&quot;text&quot;:&quot;A list of links&quot;,&quot;draggable&quot;:&quot;true&quot;},{&quot;letter&quot;:&quot;B&quot;,&quot;text&quot;:&quot;The page's footer&quot;,&quot;draggable&quot;:&quot;true&quot;}],&quot;drop&quot;:&quot;true&quot;,&quot;name&quot;:&quot;1.2-match-1&quot;,&quot;index&quot;:&quot;1&quot;}],&quot;answers&quot;:{&quot;items&quot;:[&quot;A&quot;,&quot;B&quot;]},&quot;sources&quot;:[]})"></practice-match>

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
--color-text-muted Secondary text