Velvet Thunder

Icon Link

Requires the use of ember-link.

Variants

Sizes

<DemoSpaceX>
  <VelvetIconLink @size="xs" @to="/docs/components/icon-link">
    <DemoLinkIcon />
  </VelvetIconLink>
  <VelvetIconLink @size="sm" @to="/docs/components/icon-link">
    <DemoLinkIcon />
  </VelvetIconLink>
  <VelvetIconLink @size="md" @to="/docs/components/icon-link">
    <DemoLinkIcon />
  </VelvetIconLink>
  <VelvetIconLink @size="lg" @to="/docs/components/icon-link">
    <DemoLinkIcon />
  </VelvetIconLink>
</DemoSpaceX>

Round

<DemoSpaceX>
  <VelvetIconLink
    @isRound={{true}}
    @to="/docs/components/icon-link"
    @variant="primary"
  >
    <DemoLinkIcon />
  </VelvetIconLink>
  <VelvetIconLink
    @isRound={{true}}
    @to="/docs/components/icon-link"
    @variant="secondary"
  >
    <DemoLinkIcon />
  </VelvetIconLink>
  <VelvetIconLink
    @isRound={{true}}
    @to="/docs/components/icon-link"
    @variant="ghost"
  >
    <DemoLinkIcon />
  </VelvetIconLink>
</DemoSpaceX>

Examples

Signature

Element

HTMLAnchorElement

Blocks

NameDescriptionType
:default *The icon of the icon link.[]
Blocks marked with * are required.

Arguments

NameDescriptionTypeDefault Value
@isRoundIndicate if the icon link is round.booleanfalse
@sizeThe size of the icon link.'xs' | 'sm' | 'md' | 'lg'"md"
@to *A valid route path or a custom `ember-link` `Link` instance.string | Linkundefined
@variantThe appearance of the icon link.string | 'primary'"primary"
Arguments marked with * are required.
Icon Button
Input