Hiyve Components - v1.0.0
    Preparing search index...

    Interface DevicePersistenceConfig

    Configuration for device selection persistence.

    When enabled, device selections are saved to localStorage and automatically restored on subsequent visits. This provides a better user experience by remembering their preferred devices.

    // Enable persistence with default key
    <DeviceSelector persistSelection onDeviceChange={setDevices} />

    // Enable persistence with custom key (useful for multi-user scenarios)
    <DeviceSelector
    persistSelection={{ storageKey: `devices-${userId}` }}
    onDeviceChange={setDevices}
    />
    interface DevicePersistenceConfig {
        storageKey?: string;
    }
    Index

    Properties

    Properties

    storageKey?: string

    Custom localStorage key for storing device selections.

    'hiyve-selected-devices'