Skip to content

Card

Card container component with title, subtitle, shadow, border radius, and more.

Platform Compatibility

App(vue)App(nvue)H5Mini Program

Code Examples

Basic Usage

html
<see-card title="Card Title">
  <text>This is the card content area</text>
</see-card>

With Subtitle

html
<see-card title="Card Title" sub-title="This is a subtitle description">
  <text>Content</text>
</see-card>

Custom Header

html
<see-card>
  <template #header>
    <text>Custom Title</text>
  </template>
  <text>Content</text>
</see-card>
html
<see-card title="Card Title">
  <text>Content</text>
  <template #footer>
    <text>Footer action area</text>
  </template>
</see-card>

API

Props

PropertyDescriptionTypeDefaultOptions
titleCard titlestring--
sub-titleSubtitlestring--
shadowShadow'never' | 'always' | 'hover''always'never / always / hover
paddingPaddingstring'30rpx'CSS padding value
radiusBorder radiusstring'16rpx'CSS border-radius value
marginMarginstring'30rpx'CSS margin value
borderShow borderbooleantruetrue / false
widthWidthstring'100%'CSS width value

Events

Event NameDescriptionCallback Parameters
onClickTriggered when card is clicked-
onHeaderClickTriggered when header is clicked-

Slots

NameDescription
defaultCard content
headerCustom header
footerCustom footer

Liao ICP No. 2025070134