Skip to content
HomeCobalt

Save toggle

Saves a thing for later, such as a room, a paper or a fund, and shows whether it is saved: a bookmark that fills with the accent.

Examples

Papers in a reading list, each with a bookmark at its end that saves it at once.
  • Liquidity transformation in open-end bond funds
    Working paper, March 2026
  • Fee dispersion among registered investment advisers
    Journal article, 2025
  • Do 13F filings predict returns after the 45-day lag?
    Working paper, June 2026
When the server refusesThe bookmark fills at once, the server refuses, and it moves back while a toast says Boardroom was not saved.
Boardroom
Seats 20, top floor
Two controls for one eventSaving on the photo also turns the button beside it to Saved.

Six miles along the water, back by lunch. Meet at the harbour car park at 9:00 AM.

Variants

Harbour room

Seats 12, second floor, facing the water

LabeledA 32px secondary button with the glyph and the words Save or Saved, on a record's own page; saved, the glyph takes the accent and the word the ink.
OverlayThe glyph alone on a photo, in its top end corner, white with a dark inside, filling with the accent, --primary, under its white edge, as every form does.

Usage

Use it when

  • A person keeps things to come back to: rooms, listings, papers, funds, saved searches.
  • The same thing shows in several places on a page, such as a tile and its panel, and every one of them must say whether it is saved.

Use something else when

  • The choice is a setting that changes how the product behaves. Use Switch instead.
  • The person follows a thing to hear about it. Use Button instead, labelled Follow, with useOptimisticToggle for the state.
  • The control filters a list on the page. Use Pill instead.

Rules

General

Content

Avoid

Install

npx shadcn@latest add https://kaanarici.com/r/cobalt/save-toggle.json
import { SaveToggle } from "@/components/cobalt/ui/save-toggle"