← All proposals

Menu Button

Starting point for a MenuButton proposal.

Extends a PDS componentOpen in Storybook

proposals/MenuButton/MenuButton.mdx21 lines · View on GitHub
import { Canvas, Controls, Meta, Title } from '@storybook/addon-docs/blocks';

import * as MenuButtonStories from './MenuButton.stories';

<Meta of={MenuButtonStories} name='Usage' />

<Title />

## Purpose

The PDS Menu Button, copied as the base for this proposal. A button that opens a menu of actions or links.

## Implementation

See the table below for the available props. The other stories show every variant and state.

<hr />

<Canvas of={MenuButtonStories.Default} />
<Controls of={MenuButtonStories.Default} />