EuiCard's Custom children example states
In the event that you need more than just paragraph text for the description, you can pass anything you need as the children of the component.
but even in that case, description is always required. There's an additional complication where, if you want the card's description to be a single block-level element, the entire content must be passed as children and nothing provided to description, as everything in description is wrapped in EuiText>p, and React console.warn's about invalid DOM nesting.
description's type definition includes boolean - mostly by accident - so passing description={false} effectively skirts the issue but the EuiText>p is still rendered with empty content. We should add a quick conditional around that rendering to better support this use case.
EuiCard's Custom children example states
but even in that case,
descriptionis always required. There's an additional complication where, if you want the card's description to be a single block-level element, the entire content must be passed aschildrenand nothing provided todescription, as everything indescriptionis wrapped inEuiText>p, and React console.warn's about invalid DOM nesting.description's type definition includesboolean- mostly by accident - so passingdescription={false}effectively skirts the issue but theEuiText>pis still rendered with empty content. We should add a quick conditional around that rendering to better support this use case.