@coopdigital/shared-component--link

1.9.9 • Public • Published

Link

The Link component can be used as one of the following, depending on the type associated to it via contentful:

  • internal link
  • external link
  • download link

The type of link being created determines how the HREF value is retreived.

If no classNames config is provided the component style will default to a generic link using the coop-t-link class.

Config options

{
  "icon": String,
  "iconClass": String,
  "svgClass": String,
  "classNames": String,
  "fullWidth": Boolean,
  "contentType": String - required,
  "contentParent": String - required,
}

License

Copyright (c) 2021 Co-operative Group Limited. Licensed MIT.

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i @coopdigital/shared-component--link

    Weekly Downloads

    50

    Version

    1.9.9

    License

    MIT

    Unpacked Size

    8.27 kB

    Total Files

    7

    Last publish

    Collaborators

    • coopexperience
    • omidantilong
    • mitcheh
    • matt-tyas
    • joemcgirr
    • hanross
    • coopjames