Opens the editor's font weight picker for the selected component, letting a Wix user choose a weight for a given font family.
params accepts one of the following shapes:
For more information on this choice, see Picker arguments.
Connects the picker to one or more manifest style fields, so the selected weight saves automatically.
| Name | Type | Description |
|---|---|---|
fontFamilyStyleItemKey | string | Key of the manifest style field that stores the font family. Pass together with fontWeightStyleItemKey. |
fontWeightStyleItemKey | string | Key of the manifest style field that stores the font weight. Pass together with fontFamilyStyleItemKey. |
Or, if a single field stores both:
| Name | Type | Description |
|---|---|---|
fontStyleItemKey | string | Key of the manifest style field that stores the combined font shorthand. |
Opens the picker without connecting it to the manifest. Use the callback to apply the selected weight yourself.
| Name | Type | Description |
|---|---|---|
fontFamily | object | Font family to filter the available weights by, as { family, weight }. Omit to show all weights. |
target | HTMLElement | Element in your panel that the picker popup opens relative to. |
onChange | function | Called with the selected weight. |
Promise<IFontWeight>
The selected weight.
Last updated: 8 September 2026