@omiu/input
Version:
Generally used to input information and submit it to the server.
64 lines (48 loc) • 769 B
Markdown
Generally used to input information and submit it to the server.
* [→ CodePen](https://codepen.io/omijs/pen/yLYMGqa)
```js
import '@omiu/input'
```
Or use script tag to ref it.
```html
<script src="https://unpkg.com/@omiu/input"></script>
```
```html
<o-input></o-input>
```
```tsx
{
value?: string
disabled?: boolean
type?: string
placeholder?: string
clearable?: boolean
size?: 'medium' | 'small' | 'mini'
suffixIcon?: string
prefixIcon?: string
maxLength?: number
autoComplete?: string
block?: boolean
}
```
```tsx
{
type: 'text',
autosize: false,
rows: 2,
trim: false,
autoComplete: 'off',
block: false
}
```
* blur
* focus
* change
* input