nova-kit-react
v0.4.0
Published
[](https://www.npmjs.com/package/@sebschaeffler/nova-kit) [](https://www.npmjs.com/package/nova-kit-react) [ {
return (
<div className="p-4">
<Button variant="primary" onClick={() => alert('Clicked!')}>
Click Me
</Button>
</div>
);
}🧪 Example: Form with React Hook Form
import { useForm } from 'react-hook-form';
import { Input, Button } from 'nova-kit-react';
type FormData = {
email: string;
};
export default function ContactForm() {
const { register, handleSubmit, formState: { errors } } = useForm<FormData>();
const onSubmit = (data: FormData) => {
console.log('Form submitted:', data);
};
return (
<form onSubmit={handleSubmit(onSubmit)} className="space-y-4">
<Input
label="Email"
{...register('email', { required: 'Email is required' })}
error={errors.email?.message}
/>
<Button type="submit" variant="primary">
Submit
</Button>
</form>
);
}✨ - Components
Browse the source code here.
🎨 Styling
This library is styled using Tailwind CSS. Ensure it's correctly configured in your project to use nova-kit-react seamlessly. Template is available here.
⭐️ - Background story
The name was inspired by the concept of a "nova" – a stellar explosion that signifies a powerful and luminous burst of energy against the dark backdrop of space. Just as a nova illuminates the cosmos, our library aims to shine a light on best practices, modern sleek components and shared layouts & utilities.
Nova is a React-based library. The concept of a "Supernova" – an even more powerful and transformative event - can transcend its initial form. In the future the transition from Nova Kit to Supernova Kit could mark a pivotal moment in our journey by introducing a technology-agnostic library that can be used across different platforms.
Built and maintained with ❤️ by Sebastien Schaeffler - 2024
