1.0.8 • Published 10 months ago

sdx-input-package v1.0.8

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

SDX TextField Component

A modern, customizable React TextField component with comprehensive functionality and styling options.

Installation

npm install sdx-input-package

Usage

import { TextField } from 'sdx-input-package';

function App() {
  const [value, setValue] = React.useState('');

  return (
    <TextField
      label="Username"
      value={value}
      onChange={(e) => setValue(e.target.value)}
      placeholder="Enter your username"
      required
      variant="outlined"
    />
  );
}

Props

PropTypeDefaultDescription
labelstring-Label text for the input
valuestring-Current value of the input
onChangefunction-Callback fired when input value changes
typestring'text'HTML input type
placeholderstring-Placeholder text
errorstring-Error message to display
helperTextstring-Helper text to display below input
disabledbooleanfalseWhether the input is disabled
requiredbooleanfalseWhether the input is required
fullWidthbooleanfalseWhether the input should take full width
variant'outlined' | 'filled' | 'standard''outlined'Visual variant of the input
size'small' | 'medium' | 'large''medium'Size of the input
classNamestring-Additional CSS class name

Features

  • Modern and clean design
  • Multiple variants (outlined, filled, standard)
  • Different sizes (small, medium, large)
  • Error state handling
  • Helper text support
  • Required field indication
  • Disabled state
  • Full width option
  • Custom styling support
  • Responsive design

License

MIT

1.0.8

10 months ago

1.0.7

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago