Components
Classes
Types
No results found.
If this is a bug, please report it.
Scroll
Open
Sometimes we miss things. We rely on user feedback to tell us how we're doing.
Typical input field. Right now, the component only officially supports single-line style inputs, but we're working on expanding to text areas as well.
<TextInput>
labelPosition="on-input"
helpText={false}
placeholderText="email@test.com"
</TextInput>
Note: Other React frameworks are not currently supported, but they might still work. Try at your own risk.
Method | Instructions |
---|---|
LiftKit CLI |
From any Next.js project, run the following command in your terminal.
npm run add text-input
content_copy
|
Github | open_in_new View on Github |
Method | Instructions |
---|---|
Webflow | open_in_new Clone from Made In Webflow |
Figma | open_in_new Clone from Figma Community |
Props unique to this component.
Name | Required | Type | Description | Default Val |
---|---|---|---|---|
endIcon | no | IconName | Icon displayed at the end of the input field | undefined |
helpText | no | string | Helper text displayed below the input | undefined |
labelBackgroundColor | no | LkColor | Background color used behind the floating label | undefined |
labelPosition | no | "default" | "on-input" | Controls whether the label floats or stays inline | undefined |
name | no | string | Name attribute of the input element | undefined |
placeholder | no | string | Placeholder text displayed inside the input | undefined |
Props with globally-defined behavior that are used in multiple components.
Common Props | Status |
---|---|
{children} | Not Supported |
Native HTML attributes | Supported |