Jump to content

Template:Card: Difference between revisions

From Swarthmore Knowledge Base
No edit summary
No edit summary
Line 9: Line 9:
},
},
"variant": {
"variant": {
"description": "The style variant of the carad (e.g., warning, success, info, danger).",
"description": "The style variant of the card (e.g., warning, success, info, danger).",
"type": "string"
"type": "string"
}
}
Line 21: Line 21:
</noinclude>
</noinclude>
{{#tag:react|{{{content}}}|component=Card|variant={{{variant|info}}}|content={{{content}}}}}
{{#tag:react|{{{content}}}|component=Card|variant={{{variant|info}}}|content={{{content}}}}}
{{#tag:react|{{{content}}}|component=Card|variant={{{variant|info}}}}}

Revision as of 20:56, 8 May 2026

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
contentcontent

The text to display inside the card.

Stringrequired
variantvariant

The style variant of the card (e.g., warning, success, info, danger).

Stringoptional