Callout Card

A wide neumorphic banner card with header, subheader, buttons, and optional image. Supports 3 styles and 3 radius options.

TSX
import { CalloutCard } from "looply-comp-lib";

Overview

The CalloutCard component displays wide, horizontal banner-style cards ideal for calls to action, announcements, or feature highlights. Each card supports neumorphic styling, customisable border radius, action buttons with optional links, and an optional image.

Usage

JSX
import { CalloutCard } from "looply-comp-lib";

<CalloutCard
  callOut={[
    {
      header: "Get Started",
      subHeader: "Build beautiful neumorphic interfaces in minutes.",
      styleType: "neu-soft-edge",
      radiusType: "soft-edge",
      buttons: [
        { label: "Learn More", href: "/docs" },
        { label: "Examples", href: "/examples" },
      ],
    },
    {
      header: "Open Source",
      subHeader: "Free to use in personal and commercial projects.",
      styleType: "neu-floating",
      radiusType: "pill",
      buttons: [{ label: "Browse", href: "/examples" }],
      imageUrl: "https://example.com/image.jpg",
    },
  ]}
/>

Props

PropTypeDescription
callOutcalloutContent[]Array of callout card configurations

calloutContent

PropTypeDescription
headerstringMain heading text
subHeaderstringSupporting description text
buttons{ label: string; href?: string }[]Optional array of action buttons
imageUrlstringOptional image displayed on the right side
styleType"neu-soft-edge" | "neu-pressed" | "neu-floating"Neumorphic style variant
radiusType"sharp-edge" | "soft-edge" | "pill"Border radius variant

Style Types

  • neu-soft-edge Flat surface with subtle outward shadow
  • neu-pressed Sunken inward, carved into the background
  • neu-floating Elevated with strong shadow, floating appearance

Radius Types

  • sharp-edge No border radius (square corners)
  • soft-edge Medium rounded corners (12px)
  • pill Fully rounded pill shape (35px)

Responsive

On smaller screens, cards stack vertically with the image below the text content. On medium screens and above, the layout is horizontal with text on the left and image on the right.

Demo

Start Building Today

Install Looply with a single command and start creating beautiful neumorphic interfaces.

Open Source & Free

Looply is completely free and open source. Use it in personal or commercial projects.

Open Source & Free