2021-10-17 18:26:00 +02:00
|
|
|
---
|
|
|
|
title: millimeter
|
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2021-10-17 18:26:00 +02:00
|
|
|
While we recommend using percentages where possible, sometimes that doesn't make sense.
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2021-10-17 18:26:00 +02:00
|
|
|
For those cases, you can use a millimeter option which
|
2021-08-25 16:09:31 +02:00
|
|
|
should be an object with these properties:
|
|
|
|
|
2021-10-17 18:26:00 +02:00
|
|
|
- `mm` : The default value in millimeter
|
|
|
|
- `min` : The minimul that's allowed
|
|
|
|
- `max` : The maximum that's allowed
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
```js
|
|
|
|
options: {
|
|
|
|
elasticWidth: {
|
|
|
|
mm: 35,
|
|
|
|
min: 5,
|
|
|
|
max: 80
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
<Tip>
|
|
|
|
|
|
|
|
##### When to use a millimeter option
|
|
|
|
|
|
|
|
You should only use millimeter when the option refers to a physical object
|
2021-10-17 18:26:00 +02:00
|
|
|
that comes in certain sizes.
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
</Tip>
|