--- // CP-BASE-005 button interface Props { href?: string; variant?: 'primary' | 'secondary' | 'ghost'; size?: 'sm' | 'md' | 'lg'; type?: 'button' | 'submit' | 'reset'; ariaLabel?: string; external?: boolean; } const { href, variant = 'primary', size = 'md', type = 'button', ariaLabel, external = false, } = Astro.props; const classes = `btn btn--${variant} btn--${size}`; const isExternal = href ? /^https?:\/\//.test(href) || external : false; --- {href ? ( ) : ( )}