Installation
SalsaFX is distributed as the npm package @salsafx/ui.
v16.62.0
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 Lit / React / Solid / Vue / Svelte
Section titled “Use in Lit / React / Solid / Vue / Svelte”SalsaFX components are standard Web Components and work in any framework:
import { LitElement, html } from 'lit';import { customElement, property } from 'lit/decorators.js';import '@salsafx/ui';
@customElement('my-dashboard')export class MyDashboard extends LitElement { @property({ type: Number }) value = 75;
render() { return html` <fx-radial-gauge .value=${this.value} min="0" max="100" label="Oil Pressure" unit="BAR" ></fx-radial-gauge> `; }}import { FxRadialGauge } from '@salsafx/ui/react';
export function Dashboard() { return ( <FxRadialGauge value={75} min={0} max={100} label="Oil Pressure" unit="BAR" /> );}import { FxRadialGauge } from '@salsafx/ui/solid';
export function Dashboard() { return ( <FxRadialGauge value={75} min={0} max={100} label="Oil Pressure" unit="BAR" /> );}<script setup>import '@salsafx/ui';</script>
<template> <fx-radial-gauge :value="75" :min="0" :max="100" label="Oil Pressure" unit="BAR" /></template><script>import '@salsafx/ui';let value = 75;</script>
<fx-radial-gauge value={value} min="0" max="100" label="Oil Pressure" unit="BAR"/>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;Component wrappers with typed props are exported from @salsafx/ui/react and @salsafx/ui/solid. Intrinsic JSX types for <fx-*> custom element tags are also included.
- © 2026 SalsaFX.
- Kingmaker SAS
- All rights reserved
- Contact
- SalsaFX v16.62.0