<cad-bookmark>
Bookmark
Save or unsave an item. Optionally remember the choice on this device.
Persistent bookmark
Reload the page after toggling; this example keeps its state locally.
Saved and unsaved
Saving to local storage is optional.
Saved
API reference: <cad-bookmark>
Events
cad-bookmark-change reports { active, id } and bubbles to parent elements.
Accessibility
The button exposes aria-pressed. Give both states clear labels, such as “Save note” and “Remove saved note”.