Is it accessible?
Yes. It adheres to the WAI-ARIA design pattern.
Is it styled?
Yes. It comes with default styles that matches the other
components.
Is it animated?
Yes. It's animated by default, but you can disable it if
you prefer.
);
}
function OverlaysExample() {
return (
{/* Dialog */}
{/* Sheet */}
Edit profile
Make changes to your profile here. Click save when you're
done.
NameUsername
);
}
function SettingsCardExample() {
const [emailNotifications, setEmailNotifications] = React.useState(true);
const [pushNotifications, setPushNotifications] = React.useState(false);
const [marketingEmails, setMarketingEmails] = React.useState(false);
return (
Notifications
Configure how you receive notifications.
Receive emails about your account.
Receive push notifications on your device.
setMarketingEmails(c === true)}
/>
);
}
function UserTableExample() {
const [selectedUsers, setSelectedUsers] = React.useState(["1"]);
const toggleUser = (id: string) => {
setSelectedUsers((prev) =>
prev.includes(id) ? prev.filter((u) => u !== id) : [...prev, id],
);
};
const users = [
{
id: "1",
name: "Olivia Martin",
email: "olivia@example.com",
status: "active",
avatar: "https://github.com/shadcn.png",
},
{
id: "2",
name: "Jackson Lee",
email: "jackson@example.com",
status: "pending",
avatar: "https://github.com/vercel.png",
},
{
id: "3",
name: "Isabella Nguyen",
email: "isabella@example.com",
status: "inactive",
avatar: "",
},
];
return (
Team Members
Manage your team members and their roles.