Card 卡片
Layout · Display component
Content cards and layered containers.
On-demand import
wbbb-ui/components/cardBasic Usage
<script setup lang="ts">
import { WbbbCard } from 'wbbb-ui/components/card'
import 'wbbb-ui/styles/card'
</script>
<template>
<WbbbCard />
</template>States and Interaction
All listed states can be operated and verified in the live Playground preview.
DefaultContent
API Reference
Props
| Property | Description | Type | Default | Required |
|---|---|---|---|---|
bordered | Controls whether the container renders an outer border. | boolean | true | No |
extra | Provides supplementary content in the component header. | string | '' | No |
shadow | Adds an elevated shadow to the component. | boolean | false | No |
title | Sets the component title text. | string | '' | No |
Events
None
Slots
headerdefaultfooter
Two-way binding
Does not support v-model.
Platform Notes
Build verification: H5, App Vue, WeChat Mini Program, Alipay Mini Program, and Douyin Mini Program.
Runtime differences: H5 supports keyboard focus and reduced motion. Mini Programs provide equivalent touch interaction; verify upload, date selection, and overlays on target platforms.
Usage note: Use Playground to verify further state combinations and cross-platform behavior.
