Skip to main content
Version: Next

TabProps.matchStrategy

Home > @backstage/ui > TabProps > matchStrategy

Strategy for matching the current route to determine if this tab should be active. - 'exact': Tab href must exactly match the current pathname (default) - 'prefix': Tab is active if current pathname starts with tab href

Signature:

matchStrategy?: 'exact' | 'prefix';