import * as React from 'react'
import type { StoryFn, Meta } from '@storybook/react-webpack5'
import { GridCellButton } from '.'
import { PlusCircle } from '@planview/pv-icons'
import { Grid } from '..'
import { CellBoundsPreview } from '../../docs/helpers'
export default {
title: 'pv-grid/Components/Cells/GridCellButton',
tags: ['autodocs'],
component: GridCellButton,
args: {
label: 'Cell content',
},
argTypes: {
icon: {
options: ['no icon', 'with custom icon'],
mapping: {
'no icon': null,
'with custom icon': ,
},
control: {
type: 'radio',
},
},
},
} satisfies Meta
export const Default: StoryFn = (props) => (
)
Default.decorators = [
(Story) => {Story()},
]
export const ExampleWithinGrid: StoryFn = (props) => (
},
},
},
]}
rows={[{ id: '1' }, { id: '2' }]}
/>
)
ExampleWithinGrid.parameters = {
docs: {
source: {
code: `
},
},
},
]}
rows={[
{ id: '1' },
{ id: '2' },
]}
/>
`,
},
},
}