+
+ Passing
+ will set the width of
+ the grid to fit around the content.
+
+
+ will by default resize the columns to
+ fit within it's container. So columns of long width may take up multiple lines
+ or be cut off, which might not be desired (ex. when the table has many columns
+ or is placed into a small container). One way to control column width this is to
+ provide
+ , which applies
+ the same width to all columns. However, this does not account for varying widths
+ between columns, unlike this prop does.
+
+
+
+
Without fit content is forced in multiple lines or cut off
+
+
+
+
With fit the content forces the table to expand (scroll)
+
+
+
+
+ );
+ });
});
diff --git a/static/app/components/gridEditable/index.tsx b/static/app/components/gridEditable/index.tsx
index 8e34def0f1fbac..2543995f2cccee 100644
--- a/static/app/components/gridEditable/index.tsx
+++ b/static/app/components/gridEditable/index.tsx
@@ -1,4 +1,4 @@
-import type {ReactNode} from 'react';
+import type {CSSProperties, ReactNode} from 'react';
import {Component, createRef, Fragment} from 'react';
import EmptyStateWarning from 'sentry/components/emptyStateWarning';
@@ -98,23 +98,24 @@ type GridEditableProps