Custom on/off switch rendered in the toolbar next to the filter dropdowns.
const sharedHere: CustomToolbarToggle = { id: 'shared-here', label: 'Shared with people here', checked: sharedHereOnly, onChange: setSharedHereOnly,};<FileManager customToggles={[sharedHere]} fileFilter={sharedHereOnly ? onlyShared : undefined} /> Copy
const sharedHere: CustomToolbarToggle = { id: 'shared-here', label: 'Shared with people here', checked: sharedHereOnly, onChange: setSharedHereOnly,};<FileManager customToggles={[sharedHere]} fileFilter={sharedHereOnly ? onlyShared : undefined} />
Current state
Optional
Whether the switch is disabled
Unique identifier for this toggle
Label shown next to the switch
Called when the user flips the switch
Custom on/off switch rendered in the toolbar next to the filter dropdowns.
Example