import React from "react"; import { DataEditorAll as DataEditor } from "../../data-editor-all.js"; import { BeautifulWrapper, Description, PropName, useMockDataGenerator, defaultProps, } from "../../data-editor/stories/utils.js"; import { SimpleThemeWrapper } from "../../stories/story-utils.js"; export default { title: "Glide-Data-Grid/DataEditor Demos", decorators: [ (Story: React.ComponentType) => ( You can add padding at the ends of the grid by setting the{" "} paddingRight and paddingBottom props }> ), ], }; interface PaddingProps { paddingRight: number; paddingBottom: number; } export const Padding: React.VFC = p => { const { paddingRight, paddingBottom } = p; const { cols, getCellContent } = useMockDataGenerator(20); return ( ); }; (Padding as any).argTypes = { paddingRight: { control: { type: "range", min: 0, max: 600, }, }, paddingBottom: { control: { type: "range", min: 0, max: 600, }, }, }; (Padding as any).args = { paddingRight: 200, paddingBottom: 200, };