Props
| Prop | Type | Default | Notes |
|---|---|---|---|
min-font-size | number | 1 | |
max-font-size | number | 128 | |
precision | number | 0.1 |
StellarUI
Single-line text scaler that grows or shrinks text to fit the available width, following the component's text-only contract.
The component keeps one line of text on a single line by scaling it to the available width.
<stellar-fit-text>The cute gray kitten jumped into the flower pot</stellar-fit-text>Complete props, events, slots, and implementation notes for the shipped fit-text surface.
| Prop | Type | Default | Notes |
|---|---|---|---|
min-font-size | number | 1 | |
max-font-size | number | 128 | |
precision | number | 0.1 |
| Event | Source | Notes |
|---|
| Slot | Notes |
|---|---|
| default | One or more text nodes to display. Non-text nodes are ignored. |