Shadcn UI: Accessible Components
A component library that gets included in a simple way
- downloads it directly into the code base
- means we have the flexibility to modify it to our needs if required
- out the box styled and accessible components
import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import { Card, CardHeader, CardContent } from "@/components/ui/card";
function LoginForm() {
return (
<Card>
<CardHeader>Login</CardHeader>
<CardContent>
<Input placeholder="Email" type="email" />
<Input placeholder="Password" type="password" className="mt-2" />
<Button className="mt-4 w-full">Sign In</Button>
</CardContent>
</Card>
);
}