Skip to content

@agala-labs/ui

Card

Groups one coherent piece of content with optional header, footer, and accent.

Examples

Default
<AgalaCard accent="top"><template #header>Warehouse sync</template>184 items are up to date.</AgalaCard>

Import

import { AgalaCard } from '@agala-labs/ui'

API

PropTypeDefaultDescription
padding'none' | 'sm' | 'md' | 'lg''md'Internal spacing.
headerVariant'default' | 'compact''default'Header density.
accent'top' | 'left' | 'right' | 'bottom'Accent edge.
accentColorstringAccent CSS color.
classstringConsumer override class.

Slots

  • header
  • default
  • footer

Accessibility

Cards are visual grouping only; use headings and semantic elements inside them.

Released under the MIT License.