Floating Bar

La pastille qui flotte au-dessus de toutes les apps lorsque l’enregistrement est prêt, en cours ou en traitement, avec un bouton de fermeture.

Disponible pour
  • Angular: disponible
  • Vue: disponible
  • React: disponible
  • React Native: pas encore disponible

Utilisation

Ready · ⌘⇧R

Importation

ts
import {
  SoneFloatingBarComponent,
} from "@surface-one/angular/floating-bar";

Référence de l’API

SoneFloatingBarComponentComposant

Sélecteur
sone-floating-bar
Inputs
NomType Par défaut
stateFloatingBarState"idle"
closeLabel—$localize`:Button that hides the floating recording bar:Hide`
closable

Show the trailing close button.

booleantrue
dragRegionAttr

An attribute that marks the bar's chrome as the window's drag handle — Tauri's `data-tauri-drag-region`. Set on the bar's own background element, so projected content needs none of its own. `null` = no attribute.

string | nullnull
dragRegionValue

The attribute's value. `deep` (default): Tauri 2.11 drags from anywhere inside the bar except buttons, links, inputs and labels; `""`: the background only.

string"deep"
Outputs
NomType
closedvoid