Astryx

Astryx Card

Cards

About

A bordered and elevated Astryx container for discrete, self-contained content and independently interactive items.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Astryx Card to your project and fits it to your theme.

Code

How Astryx Card is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

'use client';

import {Card} from '@/components/ui/astryx-card';
import {Stack} from '@astryxdesign/core/Layout';
import {Text, Heading} from '@astryxdesign/core/Text';

export default function CardShowcase() {
  return (
    <div
      data-astryx-theme="neutral"
      data-theme="light"
      style={{colorScheme: 'light', display: 'contents'}}>
      <Card width={320}>
        <Stack direction="vertical" gap={2}>
          <Heading level={4}>Card title</Heading>
          <Text type="body" color="secondary">
            Cards group related content with a border and background. Use them for
            profiles, settings panels, or data summaries.
          </Text>
        </Stack>
      </Card>
    </div>
  );
}

Dependencies

More by Astryx

View all
  • Astryx Banner

    Astryx Banner

    56
  • Astryx Avatar

    Astryx Avatar

    28
  • Astryx Aspect Ratio

    Astryx Aspect Ratio

    28
  • Astryx Badge

    Astryx Badge

    25
  • Astryx Button Group

    Astryx Button Group

    23
  • Astryx Toggle Button

    Astryx Toggle Button

    16
  • Astryx Avatar Group

    Astryx Avatar Group

    8
  • Astryx Chat Composer Drawer

    Astryx Chat Composer Drawer

    6

More in Cards

View all
  • Stats cards with links

    Stats cards with links

    92
  • Course Design Cards

    Course Design Cards

    1.2K
  • Statistics Card 7

    Statistics Card 7

    316
  • Statistics Card 2

    Statistics Card 2

    295
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    503
  • Card

    Card

    57
  • Item

    Item

    10
  • Card Studio

    Card Studio

    8