@dabapps/roe
Version:
A collection of React components, styles, mixins, and atomic CSS classes to aid with the development of web applications.
31 lines (25 loc) • 547 B
Markdown
#### Examples
Example with class names
```js
import { InputWithPrefixSuffix } from '@dabapps/roe';
<InputWithPrefixSuffix
prefix="£"
suffix="%"
value="Example"
onChange={() => null}
className="applied-to-input-group"
inputClassName="applied-to-input"
prefixClassName="primary"
suffixClassName="error"
/>;
```
Display block with React element prefix
```js
import { InputWithPrefixSuffix } from '@dabapps/roe';
<InputWithPrefixSuffix
block
prefix={<strong>Strong</strong>}
value="Example"
onChange={() => null}
/>;
```