Bỏ qua tới nội dung
Pattern / Feature / NEXOFRAME

Notes

Live

Ghi chú văn bản trong panel của Dock. Tự lưu sau 400ms, có nút chép toàn bộ nội dung vào clipboard.

Usage

Tắt copy để thấy nút Chép biến mất hoàn toàn, không phải bị vô hiệu hoá.

Anatomy

Một Textarea chiếm toàn bộ chiều cao còn lại, chân trang có trạng thái lưu (aria-live) và nút Chép secondary khi capability copy bật. Chi tiết: docs-design-system/03_components/features/notes.md.

API

type NoteScope = { tenantId: string; userId: string; subjectRef?: string };
type Note = { id: string; scope: NoteScope; body: string; updatedAt: string };
interface NotesStore {
  load(scope: NoteScope): Promise<Note[]>;
  save(note: Note): Promise<void>;
  remove(id: string): Promise<void>;
}