Skip to main content

Card

Container properties

All component configurations support Container properties at the first level.

Component Properties

NameTypeDefaultSupports Variable PatternDescription
classNamestring✔️root div classname
styleobjectRoot div's style
variant'pc' | 'mobile''pc'Desktop style pc, mobile style mobile
size'small' | 'default''default'The size of the card
titlestringCard's title
titleDescstringDescription of Card
stylestringCard description
titleStyleobjectCard title div style
contentStyleobjectCard content div style
suppressMarginboolfalseWhether to prohibit the Card's margins

All remaining 'componentsProps' will be passed to the component root element (div).

JS API

The interface obtained via 'formApi.getFieldApi()' is as follows:

NameTypeDescription
nodeHTML ElementThe root DOM element of the component