Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/data/material/components/number-field/number-field.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,15 @@ This is ideal for touch devices and narrow ranges of values.

{{"demo": "SpinnerDemo.js"}}

## Units and currency

Both fields above use the input's end adornment for the increment and decrement buttons, so that slot is not available for a unit or currency symbol.
Use the [`format`](https://base-ui.com/react/components/number-field#NumberFieldRoot-format) prop instead—it accepts [`Intl.NumberFormatOptions`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#options) and is forwarded to the Base UI `NumberField.Root`:

```jsx
<NumberField label="Price" format={{ style: 'currency', currency: 'USD' }} />
```

## Base UI API

See the documentation below for a complete reference to all of the props.
Expand Down
Loading