@manhphi1309/input-group
v0.3.4
Published
A set of components for building complex input layouts with addons, buttons, and text inline.
Readme
@manhphi1309/input-group
A set of components for building complex input layouts with addons, buttons, and text inline.
Subcomponents
This package provides the following components:
InputGroupInputGroupAddonInputGroupButtonInputGroupTextInputGroupInputInputGroupTextarea
Dependencies
This package relies on:
@manhphi1309/button@manhphi1309/field@manhphi1309/input@manhphi1309/textarea@manhphi1309/utilsclass-variance-authorityclsxlucide-reacttailwind-merge
Installation
npm install @manhphi1309/input-groupUsage Example
import {
InputGroup,
InputGroupAddon,
InputGroupInput,
InputGroupText,
} from "@manhphi1309/input-group"
export default function Example() {
return (
<InputGroup>
<InputGroupAddon align="inline-start">
<InputGroupText>https://</InputGroupText>
</InputGroupAddon>
<InputGroupInput placeholder="example.com" />
</InputGroup>
)
}