Deprecated. Use
<IconButton href={…}>and wireRoadieLinkProviderat the app root for client-side routing instead.LinkButtonandLinkIconButtonremain exported and continue to work for back-compat, but will be removed in v3.0.0.
An icon-only link styled as a button. Shares all visual styles with IconButton.
import { LinkIconButton } from '@oztix/roadie-components'
Always provide an aria-label since there is no visible text.
The default size is icon-md. All sizes maintain square proportions.
Recommended: wire
RoadieLinkProviderat the app root and use<IconButton href={…}>. It routes through your configured Link automatically. Theasprop below is preserved for back-compat only and will be removed in v3.0.0.
import Link from 'next/link'<LinkIconButton as={Link} href='/settings' aria-label='Settings'><GearIcon weight='bold' /></LinkIconButton>
<IconButton href={…}> for new navigation links. LinkIconButton is deprecated.aria-label to describe the action since there is no visible text.<Button href={…}> instead.Enter activates the link. Focus is indicated by a semi-transparent ring via is-interactive.<a> element by default. Screen readers announce it as a link, not a button.aria-label prop (enforced by TypeScript) since there is no visible text.An icon-only link styled as a button.
Defaults to 'neutral'.
Defaults to 'normal'.
Icon-button sizing. Use `'xs' | 'sm' | 'md' | 'lg'` (plain) — the `'icon-*'` aliases are accepted for backwards compatibility but discouraged.
Defaults to md.