@fusion.dev/helix-docs 0.232.0 → 0.234.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/forms.mdx CHANGED
@@ -216,3 +216,33 @@ returns to. In a form, that is usually what you mean by a starting value:
216
216
  ```
217
217
 
218
218
  See [State and control](./state-and-control).
219
+
220
+ ## Choose what the browser offers in a field
221
+
222
+ Every control you type into takes `autocomplete` and passes it to the text box
223
+ it draws. Set a token from the HTML standard, and the browser offers the
224
+ matching value from what it knows about the reader:
225
+
226
+ ```html
227
+ <helix-input
228
+ autocomplete="email"
229
+ label="Email"
230
+ name="email"
231
+ ></helix-input>
232
+ <helix-pin-input
233
+ autocomplete="one-time-code"
234
+ label="Code"
235
+ ></helix-pin-input>
236
+ ```
237
+
238
+ Each control starts from the value that suits it:
239
+
240
+ - Number Input, Date Input, Time Input, Filter Input, Combobox, and Color Input
241
+ start at `off`. A browser's form history for these is text typed into other
242
+ fields, and a filter or a combobox offers its own list.
243
+ - Pin Input starts at `one-time-code`, so a phone offers the code it was sent.
244
+ - Input and Textarea leave the attribute off, so the browser offers what it
245
+ usually does.
246
+
247
+ To leave the attribute off on any control, set `autocomplete` to an empty
248
+ string.
@@ -10,10 +10,10 @@ title: Iconography
10
10
  <helix-icon name="trash"></helix-icon>
11
11
  ```
12
12
 
13
- Helix has 126 glyphs, 121 of them from Phosphor, drawn on a 256 box at
14
- Phosphor's bold weight. We keep Phosphor's own geometry. Rescaling to a 24 box
15
- would change the optical weight of every glyph, and the set would stop matching
16
- Phosphor. We use the bold weight because Phosphor's regular weight is a
13
+ Helix draws its glyphs from Phosphor, plus a few marks of its own, on a 256
14
+ box at Phosphor's bold weight. We keep Phosphor's own geometry. Rescaling to a
15
+ 24 box would change the optical weight of every glyph, and the set would stop
16
+ matching Phosphor. We use the bold weight because Phosphor's regular weight is a
17
17
  hairline beside the medium weight of Helix text. An icon that looks lighter than
18
18
  the words next to it does not work as a mark.
19
19
 
@@ -23,8 +23,8 @@ the words next to it does not work as a mark.
23
23
  import '@fusion.dev/helix/icon'
24
24
  ```
25
25
 
26
- The Icon entry registers all 126 glyphs by name, so `name` draws any glyph in
27
- the set. `@fusion.dev/helix/icon/all` is the same entry and registers the same
26
+ The Icon entry registers every glyph in the set by name, so `name` draws any
27
+ glyph. `@fusion.dev/helix/icon/all` is the same entry and registers the same
28
28
  set.
29
29
 
30
30
  ## Size and color come from the surrounding text
@@ -100,8 +100,8 @@ both are set, `icon` wins.
100
100
 
101
101
  `icon` also keeps your bundle small. `name` looks up glyphs in an index of the
102
102
  whole set, and no bundler can tree-shake that index. If you render one icon by
103
- `name`, you ship the whole set: 17 kB gzipped for 126 glyphs. With `icon`, you
104
- ship only the glyph you import.
103
+ `name`, you ship the whole set: 25 kB gzipped, measured November 5, 2026. With
104
+ `icon`, you ship only the glyph you import.
105
105
 
106
106
  `icon` also draws glyphs from outside this set. Anything that exports the same
107
107
  shape works: