My App

Dashboard Tasks Email Projects Website Redesign Mobile App Settings Profile

Persistent State Demo

This side panel has persistent-id="demo-panel" set, which means it saves its collapsed/expanded state to localStorage.

Try It Out

  1. Click the toggle arrow to collapse or expand the side panel
  2. Refresh the page (or this iframe)
  3. Notice the panel returns to the same state you left it in

How It Works

When you set the persistent-id attribute, the component:

This is useful for preserving user preferences across sessions, making your application feel more responsive and personalized.

Technical Details

LocalStorage Key: side-panel-persistent-id-demo-panel

Stored Value: Loading...