import clsx from 'clsx'; import { forwardRef } from '@wordpress/element'; import { Link } from '../link'; import { type ButtonLinkProps } from './types'; import buttonStyles from '../button/style.module.css'; import styles from './style.module.css'; /** * A link that looks like a `Button`. Prefer `Link` for navigation unless * button prominence is intentional. * * See the [Usage Guidelines](https://wordpress.github.io/gutenberg/?path=/docs/design-system-components-button-usage-guidelines--docs) * for when to use `Button`, `IconButton`, `Link`, or `ButtonLink`. */ const ForwardedButtonLink = forwardRef< HTMLAnchorElement, ButtonLinkProps >( function ButtonLink( { tone = 'brand', variant = 'solid', size = 'default', className, children, ...props }, ref ) { return ( { children } ); } ); export { ForwardedButtonLink as ButtonLink };