Side Panel
ページの横にドッキングするパネル。ヘッダー、タイトル、アクション、閉じるボタン、スクロールする本文を備えます。
対応フレームワーク
Angular: 対応 Vue: 対応 React: 対応 React Native: 未対応
使い方
Weekly sync — the note stays in place while the panel docks beside it.
<div class="demo-row" style="align-items: stretch; width: 100%; min-height: 280px">
<div class="demo-stack" style="flex: 1">
<p>Weekly sync — the note stays in place while the panel docks beside it.</p>
@if (!open()) {
<button soneBtn variant="outline" type="button" (click)="open.set(true)">Open details</button>
}
</div>
@if (open()) {
<aside soneSidePanel aria-labelledby="side-panel-demo-title">
<header soneSidePanelHeader>
<h2 soneSidePanelTitle id="side-panel-demo-title">Details</h2>
<div soneSidePanelActions>
<sone-side-panel-close label="Close details" (closed)="open.set(false)" />
</div>
</header>
<div soneSidePanelContent>
<p>Created 9 October · 3 participants · 42 minutes.</p>
</div>
</aside>
}
</div>インポート
import {
SoneSidePanelActionsDirective,
SoneSidePanelCloseComponent,
SoneSidePanelContentDirective,
SoneSidePanelDirective,
SoneSidePanelHeaderDirective,
SoneSidePanelTitleDirective,
} from "@surface-one/angular/side-panel";API リファレンス
SoneSidePanelActionsDirectiveディレクティブ
SoneSidePanelCloseComponentコンポーネント
| 名前 | 型 | デフォルト |
|---|---|---|
label必須 | string | — |
| 名前 | 型 |
|---|---|
closed | void |