Install
Run this in the app, after shadcn-vue init and the Beehexa theme (Button › Code):
npx shadcn-vue@latest add https://beehexa.design/r/card.json
Use
<script setup lang="ts">
import { Button } from '@/components/ui/button'
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from '@/components/ui/card'
</script>
<template>
<Card>
<CardHeader>
<CardTitle><h3>Online store to ERP</h3></CardTitle>
<CardDescription>Sends new orders to the ERP every 15 minutes.</CardDescription>
</CardHeader>
<CardContent>Last run today, 09:45.</CardContent>
<CardFooter>
<Button>Sync now</Button>
</CardFooter>
</Card>
</template>
Props
| Part | Prop | Values | Notes |
|---|---|---|---|
Card |
size |
default, sm |
24 px or 12 px padding |
| every part | class |
string | Merged with the Beehexa classes |
CardHeader with class="border-b" draws a line under the header and pads below it.
Built on
Plain elements with data-slot attributes, as control-center’s Card. CardTitle is a div: put a heading inside it when the card belongs in the page outline. Beehexa adds the styles, the raised shadow and the token padding.