IconLink
Use an IconLink when you need to provide an link in a compact space.
Quick Start
- Installation
npm install @adaptavant/eds-core
- Import
import { IconLink } from '@adaptavant/eds-core';
Variants
IconLink accepts all variants as <IconButton />
we recommend using only following 6 variants, accentPrimary is the default.
{/* accentPrimary */}
<IconLink
aria-label="Click me!"
href="#"
icon={NewIcon}
variant="accentPrimary"
/>
{/* neutralPrimary */}
<IconLink
aria-label="Click me!"
href="#"
icon={NewIcon}
variant="neutralPrimary"
/>
{/* accentSecondary */}
<IconLink
aria-label="Click me!"
href="#"
icon={NewIcon}
variant="accentSecondary"
/>
{/* neutralSecondary */}
<IconLink
aria-label="Click me!"
href="#"
icon={NewIcon}
variant="neutralSecondary"
/>
{/* neutralSecondaryIntense */}
<IconLink
aria-label="Click me!"
href="#"
icon={NewIcon}
variant="neutralSecondaryIntense"
/>
{/* neutralTertiary */}
<IconLink
aria-label="Click me!"
href="#"
icon={NewIcon}
variant="neutralTertiary"
/>
Icons
Customise the icon via the icon prop.
{/* CheckIcon */}
<IconLink
aria-label="Click me!"
href="#"
icon={CheckIcon}
variant="accentPrimary"
/>
{/* InformationIcon */}
<IconLink
aria-label="Click me!"
href="#"
icon={InformationIcon}
variant="accentSecondary"
/>
Size
Customise the size of the IconLink via the size prop.
{/* large */}
<IconLink
aria-label="Click me!"
href="#"
icon={NewIcon}
size="large"
/>
{/* standard */}
<IconLink
aria-label="Click me!"
href="#"
icon={NewIcon}
size="standard"
/>
{/* small */}
<IconLink
aria-label="Click me!"
href="#"
icon={NewIcon}
size="small"
/>
Style API
Our design system components include style props that allow you to easily customize different parts of each component to match your design needs.
Please refer to the Style API documentation for more insights.