import SummaryButton from '@automattic/components/src/summary-button';
import { Meta, StoryObj } from '@storybook/react';
import { Icon } from '@wordpress/components';
import { brush, home, seen } from '@wordpress/icons';
import { SummaryButtonList } from './';
const meta: Meta< typeof SummaryButtonList > = {
title: 'client/dashboard/SummaryButtonList',
component: SummaryButtonList,
tags: [ 'autodocs' ],
parameters: {
actions: { argTypesRegex: '^on.*' },
},
decorators: [
( Story ) => (
),
],
};
export default meta;
type Story = StoryObj< typeof SummaryButtonList >;
export const Default: Story = {
args: {
title: 'General Settings',
children: [
}
badges={ [ { text: 'Public', intent: 'success' } ] }
/>,
}
badges={ [ { text: 'Twenty Twenty-Four' } ] }
/>,
}
badges={ [ { text: 'Latest posts' } ] }
/>,
],
},
};
export const WithDescription: Story = {
args: {
...Default.args,
description: 'Configure the basic settings for your site',
},
};
export const LowDensity: Story = {
args: {
...Default.args,
density: 'low',
},
};
export const WithDescriptionsInButtons: Story = {
args: {
title: 'General Settings',
density: 'low',
children: [
}
badges={ [ { text: 'Public', intent: 'success' } ] }
/>,
}
badges={ [ { text: 'Twenty Twenty-Four' } ] }
/>,
}
badges={ [ { text: 'Latest posts' } ] }
/>,
],
},
};