Token导航 LogoToken导航TokenDH.com
前端设计只读github未标认证来源可访问许可证需确认审计通过

syncfusion-react-timelinesyncfusion React timeline 前端

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

629

周安装

27

GitHub Stars

1

下载量

220
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:syncfusion-react-timeline(syncfusion React timeline 前端)
来源仓库:https://github.com/syncfusion/react-ui-components-skills
仓库路径:skills/syncfusion-react-timeline
安装命令:
npx skills add https://github.com/syncfusion/react-ui-components-skills --skill syncfusion-react-timeline
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/syncfusion/react-ui-components-skills --skill syncfusion-react-timeline

简介

用于辅助 React 时间轴组件的开发与维护。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中生成或审查前端组件代码。
  • 通过 GitHub 安装,需结合项目现有设计系统使用。
  • 涉及页面改动时应配合本地预览确认视觉效果。
  • syncfusion-react-timeline 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Implementing Syncfusion React Timeline

The Timeline component displays events or steps in chronological order with visual indicators. It supports vertical and horizontal layouts, multiple alignment modes, customizable dots and connectors, templates, and events for complete flexibility.

When to Use This Skill

Use the Timeline component when:

  • Displaying event sequences chronologically (project milestones, shipping tracking, activity logs)
  • Creating career progression or timeline visualizations
  • Building step-by-step process flows
  • Showing company history or project roadmap
  • Implementing event feeds with timestamps
  • Displaying before/after comparisons in alternate layouts
  • Customizing visual indicators (icons, images, colors) for events

Choose Timeline over alternatives:

  • vs Stepper: Timeline shows completed events; Stepper guides users through steps
  • vs List: Timeline emphasizes chronological relationships and connections
  • vs Chart: Timeline focuses on event sequence; Chart focuses on data relationships

Quick Start Example

import { TimelineComponent, ItemsDirective, ItemDirective } from '@syncfusion/ej2-react-layouts';
import '@syncfusion/ej2-base/styles/tailwind3.css';
import '@syncfusion/ej2-layouts/styles/tailwind3.css';

function App() {
  return (
    <div style={{ height: '350px' }}>
      <TimelineComponent>
        <ItemsDirective>
          <ItemDirective content="Shipped" />
          <ItemDirective content="Departed" />
          <ItemDirective content="Arrived" />
          <ItemDirective content="Out for Delivery" />
        </ItemsDirective>
      </TimelineComponent>
    </div>
  );
}
export default App;

Component Overview

TimelineComponent is the root container that manages the timeline layout and behavior.

Key Properties:

  • orientation: Layout direction (Vertical | Horizontal)
  • align: Content positioning (Before | After | Alternate | AlternateReverse)
  • reverse: Invert display order (most recent first)
  • cssClass: Apply custom styles
  • template: Custom rendering for timeline items

ItemsDirective & ItemDirective define timeline items within the component.

Item Properties:

  • content: Main event text or template
  • oppositeContent: Secondary text on opposite side
  • dotCss: CSS class for dot styling (icons, images, custom appearance)
  • cssClass: Individual item styling
  • disabled: Disable interaction and dim appearance

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Installation via npm and package dependencies
  • CSS imports and theme setup
  • Basic TimelineComponent structure
  • ItemsDirective and ItemDirective usage
  • Running your first timeline application

Layout Configuration

📄 Read: references/layout-configuration.md

  • Orientation options (Vertical, Horizontal)
  • Alignment modes (Before, After, Alternate, AlternateReverse)
  • Content positioning strategies
  • Choosing the right layout for your use case
  • Code examples for each layout combination

Items and Content

📄 Read: references/items-and-content.md

  • Adding string content
  • Template-based rich content
  • Opposite content configuration
  • Dot customization with icons, images, and text
  • Disabling individual items
  • Per-item CSS classes

Styling and Customization

📄 Read: references/styling-and-customization.md

  • Connector styling (common and per-item)
  • Dot color, size, shadow, outline, and variants
  • CSS custom properties for dots
  • e-outline class usage
  • Complete customization examples

Events and Callbacks

📄 Read: references/events-and-callbacks.md

  • created event when component renders
  • beforeItemRender event for item customization
  • Event handling patterns and use cases

Advanced Features

📄 Read: references/advanced-features.md

  • Template property for complete custom rendering
  • Template context (item, itemIndex)
  • Reverse property for newest-first display
  • Complex template patterns
  • When to use templates vs built-in properties

Accessibility

📄 Read: references/accessibility.md

  • WCAG 2.2 and Section 508 compliance
  • ARIA attributes and roles
  • Keyboard navigation support
  • RTL (Right-to-Left) language support
  • Mobile device accessibility

Common Patterns

Pattern 1: Vertical Timeline with Before Alignment

<TimelineComponent orientation='Vertical' align='Before'>
  <ItemsDirective>
    <ItemDirective content='Step 1' oppositeContent='Description' />
    <ItemDirective content='Step 2' oppositeContent='Description' />
  </ItemsDirective>
</TimelineComponent>

Pattern 2: Horizontal Alternate Layout

<TimelineComponent orientation='Horizontal' align='Alternate'>
  <ItemsDirective>
    <ItemDirective content='Event 1' oppositeContent='Date 1' />
    <ItemDirective content='Event 2' oppositeContent='Date 2' />
  </ItemsDirective>
</TimelineComponent>

Pattern 3: Timeline with Custom Dots and Icons

<TimelineComponent>
  <ItemsDirective>
    <ItemDirective content='Shipped' dotCss='e-icons e-package' />
    <ItemDirective content='Delivered' dotCss='e-icons e-check' cssClass='state-completed' />
  </ItemsDirective>
</TimelineComponent>

Pattern 4: Activity Feed with Reverse Order

<TimelineComponent reverse={true}>
  <ItemsDirective>
    <ItemDirective content='Latest activity' />
    <ItemDirective content='Previous activity' />
  </ItemsDirective>
</TimelineComponent>

Key Props Summary

PropTypeValuesPurpose
orientationstringVertical (default), HorizontalLayout direction
alignstringBefore, After, Alternate, AlternateReverseContent positioning
reversebooleantrue, false (default)Reverse item order
cssClassstringCSS class nameGlobal styling
templatefunctionReact functionCustom item rendering
content (item)string \functionText or templateEvent text/content
oppositeContent (item)string \functionText or templateSecondary content
dotCss (item)stringCSS classDot styling
disabled (item)booleantrue, falseDisable item
cssClass (item)stringCSS classPer-item styling

Troubleshooting

Timeline not displaying:

  • Ensure CSS imports are included (tailwind3.css or your theme)
  • Container must have explicit height: style={{height: '350px'}}
  • ItemsDirective must contain ItemDirective children

Items not centered vertically:

  • Add height to TimelineComponent container
  • Adjust with CSS custom properties: --dot-size, --dot-outer-space

Content positioning unexpected:

  • Verify align property: Before, After, Alternate, AlternateReverse
  • Check oppositeContent is defined for two-sided layouts
  • Confirm orientation matches your layout intent

Dots not visible:

  • Verify dots have e-outline class or custom CSS styling
  • Check dotCss property contains valid CSS class names
  • Ensure theme CSS includes dot styles

Templates not rendering:

  • Verify template function returns valid JSX
  • Check context properties: props.item, props.itemIndex
  • Ensure function signature matches: (props: any) => JSX.Element

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.81%
按下载量换算83

Claude

29.1%
按下载量换算64

Cursor

20.76%
按下载量换算46

Gemini CLI

10.01%
按下载量换算22

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills