HomePaymentsNo-codeDevelopersContribute
Safepay Home PageLive DashboardTest Dashboard

Input


The Input component provides a basic text input field styled according to the application's design system. It is customizable with standard HTML input attributes for seamless integration into forms or other user interfaces.

Usage

Input Basic Usage
import React from 'react';
import { Input } from '~/ui/components/Form';

export default function App() {
  return (
    <div>
      <Input
        type="text"
        placeholder="Enter your name"
        name="username"
      />
    </div>
  );
}

Rendered Example

Props

NameTypeDefaultDescription
classNamestringundefinedAdditional CSS classes to be applied to the input component
typestringtextSpecifies the type of input (e.g., "text", "password")
namestringundefinedSpecifies the name of the input field
placeholderstringundefinedA hint to the user of what can be entered in the input
disabledbooleanfalseIndicates whether the input is disabled
valuestringundefinedSpecifies the value of the input field
onChangefunctionundefinedHandler for changes to the input's value