import { Meta, Story, Props, Preview } from '@storybook/addon-docs/blocks';
import { SecondaryNavigation } from './secondary-navigation.component';
import { FlowPropsTable, ExternalReferenceLink } from '../../../utils';

<Meta title="SecondaryNavigation" component={SecondaryNavigation} />

# Secondary Navigation

`<SecondaryNavigation />` is useful when you'd like to have tab-like functionality that will work across different URLs. This will create a similar feel to a `<PageTitle />` component, with a bit more styling involved and will manage the styling when the pathname matches the `href` provided.

## Stories

### Default

<Preview withToolbar>
  <Story id="navigation-secondarynavigation--default" />
</Preview>

### With onClick

<Preview withToolbar>
  <Story id="navigation-secondarynavigation--on-click" />
</Preview>

### With Horizontal Scrolling

<Preview withToolbar>
  <Story id="navigation-secondarynavigation--horizontal-scrolling" />
</Preview>

## Props

<FlowPropsTable ofComponent={SecondaryNavigation} />

## External Reference

<ExternalReferenceLink
  src="https://github.com/wealthsimple/patchwork/tree/master/core/navigation/secondary-navigation"
  type="github"
/>
