mingle-ui is a powerful design system built with Tailwind CSS and Storybook.
It’s designed to help developers and designers create consistent, beautiful interfaces effortlessly.
Install mingle-ui into your project using NPM:
npm install mingle-ui
If you are already using mingle-ui and want to update to the latest version, use the following command:
npm install mingle-ui@latest
To use InputField with react-hook-form, follow the example below:
import { FormProvider, useForm } from 'react-hook-form';
import { InputField, PrimaryButton } from "mingle-ui";
function LoginPage() {
const methods = useForm({
mode: 'all',
});
const onSubmit = (data) => {console.log(data)};
return (
<FormProvider {...methods}>
<form onSubmit={methods.handleSubmit(onSubmit)}>
<InputField
formMethod={methods}
name='email'
type='email'
placeholder='Email'
label='Email'
errorMessage='Email is Required'
isRequired
/>
<InputField
formMethod={methods}
name='password'
type='password'
placeholder='Password'
label='Password'
errorMessage='Password is Required'
isRequired
/>
<PrimaryButton>Login</PrimaryButton>
</form>
</FormProvider>
);
}
export default LoginPage;
This ensures that all mingle-ui components render with the intended design specifications.
mingle-ui offers a wide range of components that are ready to use in your projects. To see the components available and learn how to use them, refer to the Storybook documentation provided with the package.
🔗 Mingle Design System - Storybookmingle-ui is released under the MIT License.