Octagon Card

An octagon-shaped card for tiles and highlights. Clipped with polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%).

Preview

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

<div class="flex flex-wrap gap-8">
  <OctagonCard title="Performance" description="12ms response time" color="blue" />
  <OctagonCard title="Security" description="SOC 2 certified" color="green" />
  <OctagonCard title="Scale" description="99.99% uptime" color="purple" />
</div>

Usage

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

<OctagonCard
  title="Customers"
  description="Loved by 10k teams"
  color="teal"
>
  <!-- Optional extra content -->
</OctagonCard>

The card has an aspect ratio of 1:1 and centers its content.

Props

PropTypeDefaultDescription
titlestringundefinedCard title
descriptionstringundefinedCard description
color'red' \| 'blue' \| 'green' \| 'purple' \| 'pink' \| 'orange' \| 'teal''blue'Flat color variant
classstringundefinedAdditional CSS classes
childrenSnippetundefinedExtra content below title/description

Install

npx @vultra/cli add flat-octagon-card