Link
is used to move to a different destination. It has the primary blue styling and text underline when hovered.
For tertiary buttons, or special cases, use the as
prop: <Link as="button">
and add an onClick
prop.
Example
Links font styling is inherited.
Variants
There are three variants: primary
, secondary
, and white
. These variants match the Primary Styles of Tertiary Buttons in our Design Guidelines.
Common Props
Link
includes COMMON
and TYPOGRAPHY
common props. Read Common Props for details and API. These common props will override component props such as the color.
Component Props
Prop name | Type | Default | Description |
---|---|---|---|
color | String | None | color of Link |
hoverColor | String | None | color of Link when in hover state |
underline | bool | False | Link has underline when in normal state (not just hover state) |
as | String | h2 | sets the HTML tag for the component |
variant | String | None | for tertiary buttons - color variant of Link (primary | secondary | white ) |
onClick | Func | null | prop function to handle onClick - only use when prop as="button" |
theme | Object | Bridge Theme | use to override default bridge theme |