Loading...
This element is a simple, ‘card’ that has a heading and a content pane. It is designed to expand to fit the width of the container that it is in
If the title is too long (because it's a large amount of text, or the box is just small) it is set to auto-truncate
An optional subtitle can appear below the title in a lighter colour.
Long subtitles are truncated to a single line. The full text appears in a tooltip on hover.
By default, cards expand to fit the box they are in, but by adding fitToContents it shrinks to fit what is in it. If we also add notPadded to it, we can then make the contents exactly the contained thing and nothing more.
