2.15.2
Sneak peak of the upcoming v3.0 Card component, (temporarily renamed as 'Card Replacement' on Bolt v2.x to avoid naming collisions).
npm install @bolt/components-card-replacement
Cards are shadowed containers that group together relevant and actionable information.
Note: when assigning component props as HTML attributes on a web component, make sure to use kebab-case
.
Prop Name | Description | Type | Default Value | Option(s) |
---|---|---|---|---|
|
A Drupal-style attributes object with extra attributes to append to this component. |
object
|
— |
|
|
HTML tag that contains the card-replacement content. |
string
|
article
|
|
|
Displays the card media + body horizontally. |
boolean
|
— |
|
|
Controls the height of the card-replacement to auto fit to content or the full height of the column in a grid. |
string
|
full
|
|
|
Controls the theme of the individual card-replacement. |
string
|
none
|
|
|
Providing a link will make the whole card-replacement clickable. |
object
|
— |
|
|
Media section of the card-replacement, accepts either image and video, or custom content. |
object
|
— |
|
|
Body section of the card-replacement, accepts pre-configured eyebrow, headline, and paragraph or custom content. |
object
|
— |
|
|
Actions section of the card-replacement, accepts buttons. |
array
|
— |
|
|
Content will override media, body, and actions props. Use this to build a completely cuztomized card-replacement. |
string , array , object
|
— |
|
|
Manually switch on / off the raised (shadow + animation effect) treament. By default this config option is applied if the card-replacement contains a bolt-card-replacement-link OR includes the |
boolean
|
— |
|