🔀 Multiple Mode Support
Combine any focus modes together for custom behavior. Each mode's effects are applied in sequence.
🎯 Highlight + Accordion
Visual focus with accordion behavior - only one node open per level with highlighting.
📁 Collapse + Scroll
Collapse siblings and auto-scroll to the focused node for clean navigation.
⚡ All Modes Combined
Maximum control: accordion, highlight, collapse siblings, and auto-scroll all working together.
📝
Code Examples
// Single Mode (Default)
focusMode: {
enabled: true,
type: 'highlight'
}
// Multiple Modes (New!)
focusMode: {
enabled: true,
type: ['highlight', 'accordion'] // Apply both modes
}
// All Modes Combined
focusMode: {
enabled: true,
type: ['highlight', 'accordion', 'collapse-siblings', 'scroll']
}
// Dynamic Mode Selection
const selectedModes = ['highlight', 'accordion'];
focusMode: {
enabled: true,
type: selectedModes
}