40 lines
538 B
Plaintext
40 lines
538 B
Plaintext
---
|
|
name: Input
|
|
menu: Form
|
|
route: components/input
|
|
---
|
|
|
|
import { Input } from '@ohif/ui';
|
|
|
|
# Input
|
|
|
|
## Import
|
|
|
|
```javascript
|
|
import { Input } from '@ohif/ui';
|
|
```
|
|
|
|
## Basic usage
|
|
|
|
```jsx live
|
|
function() {
|
|
const [inputValue, setInputValue] = React.useState('');
|
|
return (
|
|
<div className="p-4">
|
|
<Input
|
|
transparent
|
|
containerClassName="mb-3"
|
|
label="Label"
|
|
placeholder="With Label"
|
|
/>
|
|
<Input placeholder="Without label" />
|
|
</div>
|
|
);
|
|
}
|
|
```
|
|
|
|
## Properties
|
|
|
|
<Props of={Input} />
|
|
```
|