@fusion.dev/helix-docs 0.184.0 → 0.186.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/content/react.mdx CHANGED
@@ -106,6 +106,12 @@ them out as the table before the script runs. The table shows your rows until
106
106
  page, so React finds the markup it rendered. A development build warns when the
107
107
  first page the table draws shows different words from the rows you served.
108
108
 
109
+ Size the columns with `columns` on the table, such as
110
+ `columns="2fr 1fr max-content"`. The stylesheet can read the table's own
111
+ attribute and not a column's `width`, so the served rows are laid out at the
112
+ widths the table draws, and nothing moves when it upgrades. The checkbox column of a
113
+ `selectable` table and the pagination's row are held from the first paint too.
114
+
109
115
  ### The React version
110
116
 
111
117
  The bridge is runtime code in `@fusion.dev/helix-core`, which you already have,
@@ -158,8 +158,13 @@ A data table reads each cell from its column, and the server does not pass it
158
158
  its columns, so it serves its headings and no values. Write the first page under
159
159
  the columns as `helix-table-row` and `helix-table-cell` elements, in the table's
160
160
  sort and page size. The table shows them until `rows` holds a row, then draws
161
- its own rows in their place. See [React](./react) for the server component
162
- version.
161
+ its own rows in their place. Size its columns with `columns` on the table, which
162
+ the server sends, so the served rows are laid out at the widths the table draws.
163
+ See [React](./react) for the server component version.
164
+
165
+ A `Table` served with declarative shadow DOM lays out its headings and cells in
166
+ columns before it hydrates. A column of sentences takes its width from its text once the table
167
+ upgrades, so set `columns` on a table that has one.
163
168
 
164
169
  ## Write a server spec
165
170
 
@@ -81,7 +81,7 @@ export const docPages = [
81
81
  title: 'Forms and validation',
82
82
  },
83
83
  {
84
- description: 'Add interactive graphs to your site, styled with your theme and drawn by Sigma.js, cosmos.gl, or three.js.',
84
+ description: 'Add interactive graphs and isometric diagrams to your site, styled with your theme and drawn by Sigma.js, cosmos.gl, three.js, or Helix.',
85
85
  section: 'Essentials',
86
86
  slug: 'graphs',
87
87
  title: 'Graphs',