@ggwan/input-text
v1.1.0
Published
A customizable input text component built with React and shadcn/ui
Downloads
48
Maintainers
Readme
@marsindo/input-text
A customizable input text component built with React and shadcn/ui.
Installation
npm install @marsindo/input-text
# or
yarn add @marsindo/input-text
# or
pnpm add @marsindo/input-textUsage
import { InputText } from '@marsindo/input-text';
function App() {
return (
<div>
<InputText
placeholder="Enter text here..."
className="w-full"
/>
</div>
);
}Props
The InputText component accepts all standard HTML input props:
placeholder: string - Placeholder textvalue: string - Input valueonChange: function - Change handlerclassName: string - Additional CSS classesdisabled: boolean - Disable the input- And all other HTML input attributes...
Styling
This component uses Tailwind CSS classes and can be customized by passing additional classes through the className prop.
License
MIT
