Floating Bar

録音の準備完了・録音中・処理中に、すべてのアプリの上に浮かぶピル型のバー。閉じるボタン付き。

対応フレームワーク
  • Angular: 対応
  • Vue: 対応
  • React: 対応
  • React Native: 未対応

使い方

Ready · ⌘⇧R

インポート

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

API リファレンス

SoneFloatingBarComponentコンポーネント

セレクター
sone-floating-bar
入力
名前型 デフォルト
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"
出力
名前型
closedvoid