Skip to content

Components: Built-in React Components Library #17

@vzeman

Description

@vzeman

Overview

Create a library of pre-built React components for common use cases.

Components to Build

Data Visualization

// Bar Chart with animation
<BarChart data={[...]} colors={[...]} animationDuration={30} />

// Line Chart with drawing animation
<LineChart data={[...]} strokeWidth={2} animate={true} />

// Pie/Donut Chart
<PieChart data={[...]} innerRadius={0.5} />

// Progress Bar
<ProgressBar value={75} max={100} animate={true} />

// Counter (animated number)
<Counter from={0} to={1000} duration={60} format="currency" />

UI Components

// Gradient Text
<GradientText from="#ff0000" to="#0000ff">Hello</GradientText>

// Neon Text
<NeonText color="#00ff00" glowSize={10}>Neon</NeonText>

// Typewriter Effect
<Typewriter text="Hello World" speed={3} cursor={true} />

// Particle Background
<ParticleBackground count={50} color="#ffffff" />

// Animated Background
<AnimatedGradient colors={['#ff0000', '#00ff00', '#0000ff']} />

Social

// Social Media Card
<SocialCard platform="twitter" username="@user" avatar="..." />

// Quote Card
<QuoteCard text="..." author="..." avatar="..." />

// Product Card
<ProductCard image="..." name="..." price={99.99} />

Transitions

// Scene Transition
<SceneTransition type="wipe" direction="left" />

// Lower Third
<LowerThird title="John Doe" subtitle="CEO" />

// Call to Action
<CallToAction text="Subscribe" icon="bell" />

Package Structure

packages/components/
├── src/
│   ├── charts/
│   │   ├── BarChart.tsx
│   │   ├── LineChart.tsx
│   │   └── PieChart.tsx
│   ├── text/
│   │   ├── GradientText.tsx
│   │   ├── NeonText.tsx
│   │   └── Typewriter.tsx
│   ├── social/
│   │   ├── SocialCard.tsx
│   │   └── QuoteCard.tsx
│   ├── transitions/
│   │   ├── LowerThird.tsx
│   │   └── CallToAction.tsx
│   └── index.ts
└── package.json

Acceptance Criteria

  • All components are frame-aware (accept frame prop)
  • Work with animation system
  • Well documented with examples
  • TypeScript types
  • Registered in component registry by default

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions