Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds a card and card list component
Description
Cards
Cards can now be created which accept the following:
level: optional, Number, default: 3
defines theh#
tag for the cardheader: optional, String
pass either a link to an image, or an emoji herehero: optional, Boolean, default: false
if an image is passed to the card, this will display it as a heroleftimg: optional, Boolean, default: false
if an image is passed to the card, this will display it in a left columntitle: required, String
the titlecontent: required, String
the text under the subtitlelink: optional, Object
to
the urltext
the text to displaybutton: optional, Object or Array of 2 items
to
the urltext
the text to displayclickable: optional, Boolean, default: true
This toggles whether the card is clickablelink
andbutton
are mutually exclusiveleftimg
andhero
are mutually exclusiveCard List
items: required, Array
an array of objects with card propertieslevel: optional, Number, default: 3
defines theh#
tag for the cardsdesktopColumns: optional, default: 3
the number of columns on desktoptabletColumns: optional, default: 3
the number of columns on tabletsmallTabletColumns: optional, default: 2
the number of columns on small tablets/large phonesFor small mobile devices, one column is always displayed.
Related Issue
#765
Screenshots (if appropriate):