import { Meta, StoryObj } from '@storybook/react'; import { Button, Icon } from '@wordpress/components'; import { cog } from '@wordpress/icons'; import ActionList from './index'; const meta: Meta< typeof ActionList > = { title: 'client/dashboard/ActionList', component: ActionList, tags: [ 'autodocs' ], parameters: { actions: { argTypesRegex: '^on.*' }, }, }; export default meta; type Story = StoryObj< typeof ActionList >; export const Default: Story = { args: { children: ( Action } /> ), }, }; export const WithTitle: Story = { args: { title: 'Action List', children: ( Action } /> ), }, }; export const WithDescription: Story = { args: { title: 'Action List', description: 'description', children: ( Action } /> ), }, }; export const WithMultipleActionItems: Story = { args: { title: 'Action List', description: 'description', children: ( <> Action } /> Action } /> ), }, }; export const FullExample: Story = { args: { title: 'Action List', description: 'description', children: ( <> Action } /> } /> } actions={ } /> } /> } actions={ } /> ), }, };