Function
AlertDialogCancel
({
className,
variant = "outline",
size = "default",
...props
}: AlertDialogPrimitive.Close.Props &
Pick<React.ComponentProps<typeof Button>, "variant" | "size">)
Source from the content-addressed store, hash-verified
| 155 | } |
| 156 | |
| 157 | function AlertDialogCancel({ |
| 158 | className, |
| 159 | variant = "outline", |
| 160 | size = "default", |
| 161 | ...props |
| 162 | }: AlertDialogPrimitive.Close.Props & |
| 163 | Pick<React.ComponentProps<typeof Button>, "variant" | "size">) { |
| 164 | return ( |
| 165 | <AlertDialogPrimitive.Close |
| 166 | data-slot="alert-dialog-cancel" |
| 167 | className={cn(className)} |
| 168 | render={<Button variant={variant} size={size} />} |
| 169 | {...props} |
| 170 | /> |
| 171 | ); |
| 172 | } |
| 173 | |
| 174 | export { |
| 175 | AlertDialog, |
Callers
nothing calls this directly
Tested by
no test coverage detected