@@ -4,9 +4,9 @@ import { forwardRef, useState } from 'react'
44import { ArrowRight , ChevronRight , Loader2 } from 'lucide-react'
55import { Button , type ButtonProps as EmcnButtonProps } from '@/components/emcn'
66import { cn } from '@/lib/core/utils/cn'
7- import { useCtaButtonClass } from '@/hooks/use-cta -button-class'
7+ import { useBrandedButtonClass } from '@/hooks/use-branded -button-class'
88
9- export interface CTAButtonProps extends Omit < EmcnButtonProps , 'variant' | 'size' > {
9+ export interface BrandedButtonProps extends Omit < EmcnButtonProps , 'variant' | 'size' > {
1010 /** Shows loading spinner and disables button */
1111 loading ?: boolean
1212 /** Text to show when loading (appends "..." automatically) */
@@ -18,22 +18,22 @@ export interface CTAButtonProps extends Omit<EmcnButtonProps, 'variant' | 'size'
1818}
1919
2020/**
21- * Branded CTA button for auth and status pages.
21+ * Branded button for auth and status pages.
2222 * Automatically detects whitelabel customization and applies appropriate styling.
2323 *
2424 * @example
2525 * ```tsx
2626 * // Primary branded button with arrow
27- * <CTAButton onClick={handleSubmit}>Sign In</CTAButton >
27+ * <BrandedButton onClick={handleSubmit}>Sign In</BrandedButton >
2828 *
2929 * // Loading state
30- * <CTAButton loading loadingText="Signing in">Sign In</CTAButton >
30+ * <BrandedButton loading loadingText="Signing in">Sign In</BrandedButton >
3131 *
3232 * // Without arrow animation
33- * <CTAButton showArrow={false}>Continue</CTAButton >
33+ * <BrandedButton showArrow={false}>Continue</BrandedButton >
3434 * ```
3535 */
36- export const CTAButton = forwardRef < HTMLButtonElement , CTAButtonProps > (
36+ export const BrandedButton = forwardRef < HTMLButtonElement , BrandedButtonProps > (
3737 (
3838 {
3939 children,
@@ -49,7 +49,7 @@ export const CTAButton = forwardRef<HTMLButtonElement, CTAButtonProps>(
4949 } ,
5050 ref
5151 ) => {
52- const buttonClass = useCtaButtonClass ( )
52+ const buttonClass = useBrandedButtonClass ( )
5353 const [ isHovered , setIsHovered ] = useState ( false )
5454
5555 const handleMouseEnter = ( e : React . MouseEvent < HTMLButtonElement > ) => {
@@ -65,8 +65,8 @@ export const CTAButton = forwardRef<HTMLButtonElement, CTAButtonProps>(
6565 return (
6666 < Button
6767 ref = { ref }
68- variant = 'cta '
69- size = 'cta '
68+ variant = 'branded '
69+ size = 'branded '
7070 disabled = { disabled || loading }
7171 onMouseEnter = { handleMouseEnter }
7272 onMouseLeave = { handleMouseLeave }
@@ -97,4 +97,4 @@ export const CTAButton = forwardRef<HTMLButtonElement, CTAButtonProps>(
9797 }
9898)
9999
100- CTAButton . displayName = 'CTAButton '
100+ BrandedButton . displayName = 'BrandedButton '
0 commit comments