Link Element
import { LinkElement } from '@hanzo/ui'
No examples yet.
Types
export type LinkElementProps = React.PropsWithChildren<{
def: LinkDef
/** Fires alongside the navigation — e.g. to close the drawer it sits in. */
onClick?: () => void
/** Overrides `def`. */
variant?: ButtonVariant | null
/** Overrides `def`. */
size?: ButtonSize | null
/** Overrides `def`. */
icon?: React.ReactNode
/** Overrides `def`. */
iconAfter?: boolean
/**
* Only classes that carry a rule — this renders a host anchor, so whatever
* arrives here reaches the document verbatim. Layout goes in `style`.
*/
className?: string
style?: React.CSSProperties
/**
* `page` on the link to where you already are. It is how a screen reader
* says "this one" in a navigation list — the colour that marks it visually
* says nothing at all.
*/
'aria-current'?: 'page' | 'true' | false
}>Exports
LinkElementtype LinkElementProps