ACardInner component is an atom that provides a simple card container with styling from the app configuration. It supports polymorphic rendering, allowing you to specify the HTML element or Vue component to render.
Props
Additional CSS classes to apply to the card. Uses tailwind-merge to combine with default styles.
The HTML element or Vue component to render the card as. Examples: ‘div’, ‘article’, ‘section’
Slots
default
The default slot for all card content
Usage
Basic Card
With Custom Classes
As Different Element
As Section
Nested in BCard
Styling
The component applies styles from the app configuration:- Base styles from
appConfig.ui.card.slots.body - Custom classes from the
classprop
twMerge utility ensures that conflicting Tailwind classes are properly resolved.
Implementation Details
- Uses Vue’s
<component :is>for polymorphic rendering - Integrates with Nuxt’s
useAppConfig()for theme consistency - Leverages
tailwind-mergefor intelligent class merging
/home/daytona/workspace/source/app/components/a/card/a-card-inner.vue