Input
Input
Use Input
to build forms for your interface. This component provides a styled version of HTML <input>
.
Import component
import { Input } from 'rimble-ui';
Examples
Different ways to use the Input
component in your product. Note: these examples use the Field component to render associated labels.
Placeholder
Adds placeholder text to suggest the type of input expected.
Disabled input
Optional input
Renders "(Optional)" next to the label.
Text input types
Text input
Brings up a standard keyboard.
Email input
Give you an @ on your keyboard.
Password input
Masks any input.
Search input
Allows users to quickly remove a search term.
URL input
Brings up a url keyboard.
Numerical input types
Number input
Opens the number page of your keyboard.
Range input
See the Slider component to implement a range input type.
Telephone input
Brings up the telephone keyboard.
Time input types
Date input
Displays HTML5 date picker.
Time input
Displays HTML5 time picker.
Month input
Displays HTML5 month picker.
Week input
Displays HTML5 week picker.
Other input types
File input
Displays HTML5 file picker.
Props
bg
'background'
border
1
borderColor
'moon-gray'
borderRadius
1
boxShadow
1
color
'text'
fontSize
'1rem'
height
'3rem'
lineHeight
'initial'
p
3
theme
Styled System Props
Input
uses COMMON
, LAYOUT
, POSITION
, FLEXBOX
, BORDERS
groups of Styled System props.
Design guidelines
Some best practices for using Input
in your product.
Don't use placeholders instead of labels