Skip to content

Common Components

The Common module provides reusable UI components and the styling setup primitive that serve as building blocks for applications.

  • CratisComponentsProvider: Single setup point for Cratis Components — wraps PrimeReact’s PrimeReactProvider and hosts the pt, unstyled, locale, and other global configuration.
  • Icon / IconDisplay: Unified icon type that accepts a PrimeIcons CSS class string or any React node.
  • Page: Layout primitive for consistent page structures.
  • FormElement: Lightweight wrapper that places an icon addon to the left of a form input.
  • ErrorBoundary: Error handling for React component trees.