Input
Text fields let users enter text into a UI
import { Field, Input,} from '@cerberus/react'
Usage
The Input
component displays a text-based input field.
With Icons
You can utilize the startIcon
or endIcon
props to add icons to the input.
Customizing
You can customize the input by passing styles directly into the component and is a re-export of the FieldInput
primitive.
API
Props
The Input
accepts the following props in addition to any native input
props:
Name | Default | Description |
---|---|---|
startIcon | An ElementType to display at the start of the input | |
endIcon | An ElementType to display at the end of the input | |
size | This size variant of the input |
The Input
component also accepts any of the props from the FieldParts.Input
primitive.
import { Field, Input,} from '@cerberus/react'
Usage
The Input
component displays a text-based input field.
With Icons
You can utilize the startIcon
or endIcon
props to add icons to the input.
Customizing
You can customize the input by passing styles directly into the component and is a re-export of the FieldInput
primitive.
API
Props
The Input
accepts the following props in addition to any native input
props:
Name | Default | Description |
---|---|---|
startIcon | An ElementType to display at the start of the input | |
endIcon | An ElementType to display at the end of the input | |
size | This size variant of the input |
The Input
component also accepts any of the props from the FieldParts.Input
primitive.
import { Field, Input,} from '@cerberus/react'
Usage
The Input
component displays a text-based input field.
With Icons
You can utilize the startIcon
or endIcon
props to add icons to the input.
Customizing
You can customize the input by passing styles directly into the component and is a re-export of the FieldInput
primitive.
API
Props
The Input
accepts the following props in addition to any native input
props:
Name | Default | Description |
---|---|---|
startIcon | An ElementType to display at the start of the input | |
endIcon | An ElementType to display at the end of the input | |
size | This size variant of the input |
The Input
component also accepts any of the props from the FieldParts.Input
primitive.
import { Field, Input,} from '@cerberus/react'
Usage
The Input
component displays a text-based input field.
With Icons
You can utilize the startIcon
or endIcon
props to add icons to the input.
Customizing
You can customize the input by passing styles directly into the component and is a re-export of the FieldInput
primitive.
API
Props
The Input
accepts the following props in addition to any native input
props:
Name | Default | Description |
---|---|---|
startIcon | An ElementType to display at the start of the input | |
endIcon | An ElementType to display at the end of the input | |
size | This size variant of the input |
The Input
component also accepts any of the props from the FieldParts.Input
primitive.