Input text
An unstyled html input that unlocks that ability to build forms natively within framer.
Uses framer events for transitions between variants
Styling of the input container is done on the framer canvas not in the side bar.
Uses the correct HTML syntax and type to ensure forms are handle properly.
Uses native HTML Form attribute to use within any form.
How to use
Create a framer component: Using framer create a component that will use this prefab.
Add prefab: Add the prefab to the component and connect the transitions to the matching variants states.
Nest prefab: Nest prefab to the parent frame.
Adding a clear button: (Optional) To add a clear button for the input any layer or component to the parent frame with the following accessibility tools added. aria-label="clear" and tag to be a button.
Test: Test the component in preview and ensure that your transitions are working.
Done: That is it! You are all set to use this prefab.
Component properties
Property
Description
id
The unique id for the input.
Name*
Name of form field
Required
When used in a form requires users to fill out.
Placeholder
Sets the string of the placeholder of the input.
Padding
Sets the padding of the input prefab.
Padding
Sets the padding of the input prefab.
Input type
Sets the type for Input (Text, Email or Phone)
Disabled
Sets the input to disabled.
Validation
Sets the validation for the input. For more detail on validation look at validator js documentation.
Styles
Contains style properties for the prefab for text and placeholder.
Events
Supported events: Default, Default-hasValue, Focus, Focus-hasValue, Error, Error-hasValue, Success, Success-hasValue