diff --git a/packages/react/components/Button.tsx b/packages/react/components/Button.tsx index 8f3cc97..dd4f05b 100644 --- a/packages/react/components/Button.tsx +++ b/packages/react/components/Button.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { vcn, VariantProps } from "../shared"; +import { vcn, VariantProps, Slot, AsChild } from "../shared"; const [buttonVariants, resolveVariants] = vcn({ base: "flex flex-row items-center justify-between rounded-md outline outline-1 outline-transparent outline-offset-2 focus-visible:outline-black/50 dark:focus-visible:outline-white/50 transition-all", @@ -56,18 +56,20 @@ const [buttonVariants, resolveVariants] = vcn({ export interface ButtonProps extends Omit, "className">, - VariantProps {} + VariantProps, + AsChild {} const Button = React.forwardRef( (props, ref) => { const [variantProps, otherProps] = resolveVariants(props); - return ( -