Skip to content

cfasim-ui

cfasim-ui is the shared component and theming library you use to make simulators.

Packages

PackageDescription
@cfasim-ui/componentsAccessible UI components built on reka-ui
@cfasim-ui/chartsSVG charting components
@cfasim-ui/themeDesign tokens, reset, and utility classes
@cfasim-ui/pyodideRun Python models in the browser via Pyodide Web Workers
@cfasim-ui/wasmRun Rust/WASM models in the browser via a Web Worker

Components

  • Box — colored container for callouts and alerts
  • Button — primary and secondary actions
  • Expander — collapsible content section
  • Hint — inline tooltip for help text
  • Icon — Material Symbols icon
  • NumberInput — number field with optional slider
  • SelectBox — dropdown select
  • Spinner — loading indicator
  • TextInput — text field
  • Toggle — boolean switch

Charts

Workers

  • Pyodide — run Python models via Pyodide Web Workers
  • WASM — run Rust/WASM models via a Web Worker