import * as React from 'react'
import type { StoryFn, Meta } from '@storybook/react-webpack5'
import { GridCellChips } from '.'
import { Grid } from '..'
import { History, Refresh, Save } from '@planview/pv-icons'
import { CellBoundsPreview } from '../../docs/helpers'
export default {
title: 'pv-grid/Components/Cells/GridCellChips',
tags: ['autodocs'],
component: GridCellChips,
args: {
value: 'array of strings' as any,
},
argTypes: {
value: {
options: ['array of strings', 'array of objects'],
mapping: {
'array of strings': ['one', 'two', 'three'],
'array of objects': [
{ id: 1, label: 'one', icon: },
{ id: 2, label: 'two', icon: },
{ id: 3, label: 'three', icon: },
],
},
control: {
type: 'radio',
},
table: {
type: {
summary: 'string[] | GridCellChipsItem[]',
},
},
},
},
} satisfies Meta
export const Default: StoryFn = ({ tabIndex, value }) => (
)
Default.decorators = [
(Story) => {Story()},
]
export const ExampleWithinGrid: StoryFn = (props) => (
},
},
},
]}
rows={[{ id: '1' }, { id: '2' }]}
/>
)
ExampleWithinGrid.parameters = {
docs: {
source: {
code: `
},
},
},
]}
rows={[{ id: '1' }, { id: '2' }]}
/>`,
},
},
}