feat(button): support render delegation with asChild parameter (#174)

This commit is contained in:
Evan Rosenfeld
2023-04-30 04:01:41 -04:00
committed by GitHub
parent 7dc67be1ad
commit d99b992e27
4 changed files with 36 additions and 3 deletions

View File

@@ -0,0 +1,11 @@
import Link from "next/link"
import { Button } from "@/components/ui/button"
export function ButtonAsChild() {
return (
<Button asChild>
<Link href="/login">Login</Link>
</Button>
)
}