Arrow Card

A card whose edge points left or right like an arrow. Clipped to a pointed polygon with a bold flat color, ideal for callouts, step flows, and directional hints.

Preview

<script>
  import { ArrowCard } from '@vultra/flat';
</script>

<div class="flex flex-col gap-6">
  <ArrowCard title="Next step" direction="right" color="blue">
    Continues to the right
  </ArrowCard>
  <ArrowCard title="Go back" direction="left" color="orange">
    Points to the previous step
  </ArrowCard>
</div>

Usage

<script>
  import { ArrowCard } from '@vultra/flat';
</script>

<ArrowCard title="Checkout" direction="right" color="green">
  <!-- Card body -->
</ArrowCard>

Props

PropTypeDefaultDescription
titlestringundefinedCard title
direction'left' \| 'right''right'Direction the arrow points
color'red' \| 'blue' \| 'green' \| 'purple' \| 'pink' \| 'orange' \| 'teal''blue'Flat color variant
classstringundefinedAdditional CSS classes
childrenSnippetundefinedCard body content

Install

npx @vultra/cli add flat-arrow-card