githubEdit

βœ‹Generics

Generics are TypeScript types and interfaces that form the foundation of Valence's type system. They provide consistent prop interfaces across all components and enable features like polymorphism and event handling.

Available generics

Core types

  • Global - Base types like ComponentSize, FillVariant, and GenericProps

  • Layout - Layout-related prop interfaces

  • Grid - CSS Grid prop interfaces

Interactive

  • Clickable - Clickable element props (links, buttons)

  • Events - Event handler prop interfaces

Specialized

Last updated