EmailField

Displays an email address as a mailto: link. Prevents row click bubbling.

Installation

pnpm dlx shadcn@latest add @shadmin/email-field

Usage

import { EmailField } from "@/components/admin";
 
<EmailField source="email" />;

Props

PropRequiredTypeDefaultDescription
sourceRequiredstring-Field containing the email
defaultValueOptionalany-Fallback value
emptyOptionalReactNode-Placeholder when no value
recordOptionalobjectRecord from contextExplicit record

Remaining props are passed to the underlying <a> element (e.g., target, rel, className).