Installation
SalsaFX is distributed as the npm package @salsafx/ui.
v4.62.3
Prerequisites
Section titled “Prerequisites”- Node.js 18 or later
- npm, pnpm, yarn, or bun
- A project using Lit (peer dependency) or any framework that supports Web Components
Installation
Section titled “Installation”-
Install the package
Terminal window npm install @salsafx/uiTerminal window pnpm add @salsafx/uiTerminal window yarn add @salsafx/uiTerminal window bun add @salsafx/uiAfter installation, your
package.jsonwill contain:{"dependencies": {"@salsafx/ui": "^4.11.0"}} -
Install the peer dependency
SalsaFX requires Lit:
Terminal window npm install litTerminal window pnpm add litTerminal window yarn add litTerminal window bun add lit
Import
Section titled “Import”Register all components with a single import in your app entry (Vite, webpack, …):
import '@salsafx/ui';Use in HTML
Section titled “Use in HTML”Once imported, the components are available as standard HTML custom elements:
<fx-radial-gauge value="75" min="0" max="100" label="Oil Pressure" unit="BAR"></fx-radial-gauge>Use in React / Vue / Svelte
Section titled “Use in React / Vue / Svelte”SalsaFX components are standard Web Components and work in any framework:
// Reactimport '@salsafx/ui';
export function Dashboard() { return ( <fx-radial-gauge value={75} label="Oil Pressure" unit="BAR" /> );}<!-- Vue --><script setup>import '@salsafx/ui';</script>
<template> <fx-radial-gauge :value="75" label="Oil Pressure" unit="BAR" /></template>Updating
Section titled “Updating”npm update @salsafx/uipnpm update @salsafx/uiyarn up @salsafx/uibun update @salsafx/uiTypeScript
Section titled “TypeScript”The package includes TypeScript declarations. No additional @types package is needed.
import type { FxRadialGauge } from '@salsafx/ui';
const gauge = document.querySelector('fx-radial-gauge') as FxRadialGauge;gauge.value = 80;© 2026 SalsaFX.PlutonKrea s.r.o.All rights reserved |Contact| SalsaFX v4.62.3