syncfusion/react-ui-components-skills

syncfusion-react-cards

Build flexible card layouts for displaying content in React.

소스 보기

사용 방법

  1. 설치 명령을 복사하고 자신의 에이전트 환경에 설치하기 전에 소스 패키지를 확인하세요.
  2. 필요한 도구, 인증 정보, 지원 환경은 원본 문서에서 확인하세요.
  3. 입력과 원하는 산출물을 설명하고 출처와 결과를 대조하세요.
npx skills add https://github.com/syncfusion/react-ui-components-skills --skill syncfusion-react-cards

시작 전 확인

  • 설치에는 모델 구독, API 한도, 파일 접근 권한이 포함되지 않습니다.
  • 별점 수와 설치 수는 활동 지표이며 독립적인 품질·보안 검증이 아닙니다.
원본 Skill 문서

원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.

Implementing React Card Component

The Syncfusion React Card component is a lightweight, flexible container for displaying organized content with support for headers, images, dividers, action buttons, and integrated components.

When to Use This Skill

Use this skill when you need to:

  • Create simple or complex card-based layouts
  • Build a card with header, image, and action sections
  • Display content in a card with separators or dividers
  • Add action buttons (horizontal or vertical) to cards
  • Create horizontal card layouts with stacked content
  • Embed other Syncfusion components (ListView, Charts, etc.) inside cards
  • Customize card appearance with images, titles, and positioning
  • Build responsive card-based user interfaces

Navigation Guide

Follow this guide based on what you're implementing:

Getting Started

📄 Read: references/getting-started.md

  • Package installation and setup
  • Basic card structure and CSS imports
  • Simple card examples
  • Required dependencies

Card Structure & Headers

📄 Read: references/card-structure-headers.md

  • Card root element and classes
  • Header structure with title and subtitle
  • Header images and positioning
  • Content sections and organization

Images, Titles & Dividers

📄 Read: references/images-titles-dividers.md

  • Adding images to cards
  • Image titles and overlay effects
  • Dividers for section separation
  • Title positioning and customization

Action Buttons

📄 Read: references/action-buttons.md

  • Adding buttons and links to cards
  • Horizontal button layout (default)
  • Vertical button alignment
  • Icon buttons and styling

Layouts & Advanced

📄 Read: references/layouts-customization.md

  • Horizontal card layout
  • Stacked sections within cards
  • Image title position classes
  • CSS positioning and styling

Embedding Components

📄 Read: references/embedding-components.md

  • Integrating ListView with cards
  • Embedding charts and data components
  • Dynamic content patterns
  • Practical use cases

Quick Start Example

Basic Card with Header and Content:

jsx
import React from 'react';
import '@syncfusion/ej2-layouts/styles/tailwind3.css';

export default function BasicCard() {
  return (
    <div className="e-card">
      <div className="e-card-header">
        <div className="e-card-header-caption">
          <div className="e-card-header-title">Card Title</div>
          <div className="e-card-sub-title">Subtitle</div>
        </div>
      </div>
      <div className="e-card-content">
        This is the main content of the card. Add any HTML content here.
      </div>
    </div>
  );
}

Card with Action Buttons:

jsx
import React from 'react';

export default function CardWithButtons() {
  return (
    <div className="e-card">
      <div className="e-card-header-title">Product Card</div>
      <div className="e-card-content">
        High-quality product description goes here.
      </div>
      <div className="e-card-actions">
        <button className="e-card-btn">View</button>
        <button className="e-card-btn">Buy Now</button>
        <button className="e-card-btn">Share</button>
      </div>
    </div>
  );
}

Horizontal Layout Card:

jsx
import React from 'react';

export default function HorizontalCard() {
  return (
    <div className="e-card e-card-horizontal" style={{ width: '400px' }}>
      <img src="./image.png" alt="Card" style={{ height: '180px' }} />
      <div className="e-card-stacked">
        <div className="e-card-header">
          <div className="e-card-header-caption">
            <div className="e-card-header-title">Title</div>
          </div>
        </div>
        <div className="e-card-content">
          Content displayed vertically within horizontal layout
        </div>
      </div>
    </div>
  );
}

Common Patterns

Pattern 1: User Profile Card

Combine header images, titles, and action buttons to create profile cards for user listings or team pages.

jsx
<div className="e-card">
  <div className="e-card-header">
    <div className="e-card-header-image" style={{ backgroundImage: 'url(./profile.jpg)', width: '60px', height: '60px', borderRadius: '50%' }} />
    <div className="e-card-header-caption">
      <div className="e-card-header-title">John Doe</div>
      <div className="e-card-sub-title">Product Manager</div>
    </div>
  </div>
  <div className="e-card-content">
    Experienced in building user-centric products.
  </div>
  <div className="e-card-actions">
    <button className="e-card-btn">Message</button>
    <button className="e-card-btn">Follow</button>
  </div>
</div>

Pattern 2: Product Card with Image

Use card images and titles for product listings with pricing and action buttons.

jsx
<div className="e-card">
  <div className="e-card-image" style={{ backgroundImage: 'url(./product.jpg)', height: '200px' }}>
    <div className="e-card-title">Product Name</div>
  </div>
  <div className="e-card-content">
    <p>$99.99</p>
    <p>High-quality product with excellent features</p>
  </div>
  <div className="e-card-actions">
    <button className="e-card-btn">Add to Cart</button>
    <button className="e-card-btn">Buy Now</button>
  </div>
</div>

Pattern 3: Blog Post Card

Combine headers, dividers, and content sections to create blog post cards.

jsx
<div className="e-card">
  <div className="e-card-header-title">Blog Post Title</div>
  <div className="e-card-sub-title">Published on March 26, 2026</div>
  <div className="e-card-separator" />
  <div className="e-card-content">
    Blog post excerpt and content goes here...
  </div>
  <div className="e-card-actions">
    <button className="e-card-btn">Read More</button>
    <button className="e-card-btn">Share</button>
  </div>
</div>

Key CSS Classes

ClassPurpose
e-cardRoot container for the card
e-card-headerHeader section container
e-card-header-captionWrapper for title and subtitle
e-card-header-titleMain title text
e-card-sub-titleSubtitle text
e-card-header-imageHeader image element
e-card-imageFull-width card image
e-card-titleTitle overlay on image
e-card-contentMain content section
e-card-actionsButton container
e-card-btnIndividual button styling
e-card-verticalVertical button alignment
e-card-separatorDivider element
e-card-horizontalHorizontal card layout
e-card-stackedVertical stack within horizontal
e-card-cornerRounded corners on images

Essential Setup

  1. Install package:
bash
   npm install @syncfusion/ej2-layouts
  1. Import CSS:
css
   @import '@syncfusion/ej2-layouts/styles/tailwind3.css';
  1. Create card element:
  • Add e-card class to root div
  • Add header, content, images, or buttons as needed
  • Apply additional classes for layout and styling

Common Use Cases

  • Dashboard cards: Display key metrics or data summaries
  • Product listings: Showcase products with images and prices
  • Team members: Display user profiles and contact info
  • Blog posts: Show article previews with meta information
  • Feature highlights: Present features with descriptions
  • Data reports: Organize tabular or list data in cards
  • Notification cards: Display alerts or messages
  • Settings cards: Group related settings together

Next Steps: Choose a reference based on your specific need, then implement your card layout following the examples and patterns provided.

관련 작업

같은 저장소의 Skills

더 많은 Skills

모든 Skills
syncfusion
커뮤니티

syncfusion-react-breadcrumb

Implement and configure Syncfusion React Breadcrumb component for navigation paths, routing, and site hierarchy. Use this skill whenever users need breadcrumb navigation, want to create hierarchical navigation paths, display location breadcrumbs, handle navigation between pages, customize overflow behaviors, or integrate breadcrumbs with routing libraries.

설치 수
1
GitHub Stars
3
업데이트
10월 6일
syncfusion
커뮤니티

syncfusion-react-dashboard-layout

Build responsive, interactive dashboard layouts with Syncfusion React Dashboard Layout component. Implement draggable and resizable panels, responsive grid systems, dynamic panel management, and state persistence. This skill covers multi-column layouts, floating panel arrangement, extensive customization, drag-drop panel rearrangement, and state management for React applications.

설치 수
1
GitHub Stars
3
업데이트
10월 6일
syncfusion
커뮤니티

syncfusion-react-data-manager

Implements Syncfusion DataManager for local/remote binding, CRUD, querying, caching, and middleware. Supports JsonAdaptor, ODataAdaptor, ODataV4Adaptor, UrlAdaptor, WebApiAdaptor, WebMethodAdaptor, RemoteSaveAdaptor, GraphQLAdaptor, CustomDataAdaptor, and CustomAdaptor. Covers Query class, filtering, sorting, paging, grouping, persistence, offline mode, caching, and error handling.

설치 수
1
GitHub Stars
3
업데이트
10월 6일
syncfusion
커뮤니티

syncfusion-react-maps

Implement Syncfusion React Maps component for geographical data visualization. Use this when displaying interactive maps, location-based information, or regional data analysis. This skill covers map providers (Bing, OpenStreetMap), GeoJSON rendering, markers and bubbles, zooming/panning, data labels, legends, and choropleth visualizations in React applications.

설치 수
1
GitHub Stars
3
업데이트
10월 6일