co-number-field
Ver código
<co-number-field label="Ejemplo"></co-number-field> Props
| Prop | Atributo | Tipo | Default | Descripción |
|---|---|---|---|---|
clearable | clearable | boolean | false | Show clear button when the field has a value |
disabled | disabled | boolean | false | |
helperText | helper-text | string | undefined | — | |
label | label | string | undefined | — | |
layout | layout | "horizontal" | "vertical" | 'vertical' | Label layout: vertical (label above) or horizontal (label beside) |
max | max | number | undefined | — | |
min | min | number | undefined | — | |
placeholder | placeholder | string | '0' | |
required | required | boolean | false | Whether the field is required (renders a required marker on the label). |
secondaryLabel | secondary-label | string | undefined | — | |
size | size | "lg" | "md" | "s" | "sm" | 'md' | |
status | status | "default" | "error" | "info" | "success" | "warning" | 'default' | |
step | step | number | 1 | |
value | value | null | number | 0 |
Eventos
| Evento | Detail | Bubbles | Cancelable | Descripción |
|---|---|---|---|---|
coChange | null | number | ✓ | ✓ | |
coClear | void | ✓ | ✓ | Emitted when the clear button is clicked |
Slots
Este componente no expone slots.
CSS Parts
Este componente no expone CSS parts.
CSS Custom Properties
Este componente no expone CSS custom properties.