A input that allows a user to write or edit text.
text, password, number and email.text.sm, md, lg and responsive and can be changed by passing the size prop.lg.responsive, the component will be responsive to the viewport.Screen prefix | Screen width | Component size |
|---|---|---|
|
| sm |
|
| md |
|
| lg |
@ocean-network-express/magenta-ui/icons package.leftContent and rightContent.disabled prop to true.readOnly prop to true.loading prop to true.fullWidth prop to true.Input supports adding label and helperText props.label prop.Input component allows to include additional content with the main label.
labelPrefix prop to place content before the main label text, such as an icon (e.g., a search 🔍 icon) or a short word.labelSuffix prop.top, left and inline and can be changed by passing the labelAlignment prop.top.inline Alignment with leftContent, the leftContent will be override by LabelhelperText prop.inline and tooltip and can be changed by passing the renderHelperType prop.error, warning and success and can be changed by passing the state prop.As use case of the tooltip, you can use the renderHelperType='tooltip' to to display the error message in the tooltip.
The tooltip content render by helperText prop value, and it only accept string type for this case. Otherwise, it accept ReactNode when using with default validation.