# xena-input
Input is a component for getting user input as text or number
[XenaDS documentation](https://ds.xena.biz/components/input)

## string (default)
Captures and displays user input as a `string`, storing the value as a `string` in the `formControl`.
```html
<xena-input formControlName="anyName"></xena-input>
```

## number
Captures and displays user input according to the locale culture, storing the value as a `number` in the `formControl`.
This ensures correct numeric formatting and type handling in the component's TypeScript code.
```html
<xena-input [number] formControlName="anyName"></xena-input>
<!-- English format '1,234.56' --->
<!-- Danish format '1,234.56' --->
```

### Decimal places
Decimals are set to 2 by default, but they can be adjusted as shown.
```html
<xena-input [number]="3" formControlName="anyName"></xena-input>
<!-- English format '1,234.567' --->
<!-- Danish format '1,234.567' --->
```
