A complete library of polymorphic components for React. Intelligent inputs, interactive buttons, and adaptive cards with modern design and a simplified API.
Components that adapt to any use case with a simple API and intuitive TypeScript for better DX.
Efficient rendering, optimized bundle size and zero unnecessary dependencies. Built for scale.
Contemporary styles with theme support, smooth animations and accessibility in mind.
bash
npx masked-components-clitsx
import { MInput } from
'../MaskedInput/MaskedInput'
function MyForm() {
const [value, setValue] = useState('')
return (
<MInput
radius={4}
variant="masked"
label="Phone number"
icon={<BsStars />}
mask="(00) 0000-0000"
placeholder="Telefone"
value={phoneValue}
onChange={v => setPhoneValue(v)}
/>
)
}
All masks are applied automatically as you type. Numbers are accepted and formatted in real-time.
All masks are applied automatically as you type. Numbers are accepted and formatted in real-time.
tsx
<MaskedButton
type="button"
variant="default"
state="default"
size="sm"
leftIcon={<FaCode />}
rightIcon={<FaCode />}
>
Default
</MaskedButton>
tsx
<Div> <MAnimation trigger="hover" variant="blurIn" center> <p>blurIn</p> </MAnimation> </Div># or<MAnimation trigger="hover" variant="spin" > <div> <BsStars /> spin </div> </MAnimation># or<div> <MButton variant="default" onClick={() => setOpen(!open)}> Click here </MButton> <MAnimation trigger="controlled" variant="drawer" isOn={open}> <Window> Menu Content </Window> </MAnimation> </div>
blurIn
fadeInLeft
fadeInRight
fadeInUp
fadeInUpRotate
fadeOutDown
flipX
flipY
magneticRise
popElastic
rotateDrop
zoomFromDeep
TypeScript Native
Polymorphic & Flexible
Modern Design
Customizable
Responsive
Tree Shaking
Complete Documentation
Optimized Performance