Link

Link

<a id="62bed8e98cfe4" class="c-link" target="_top" href="http://helsingborg.se/?variant=1" role="link" data-uid="62bed8e98cfde">
        A link
    </a>
@link([
    'href' => 'http://helsingborg.se/?variant=1'
])
    A link
@endbutton

Blade component parameters

Key Default value Type Available values Description
componentElement span string - -
slot Undefined label string - The label/content of the link
href string - Where should the link go to?
target _top string - Open a new tab or not?
keepContent true boolean - If link is empty, should we show content anyways? Prints in a span.
id string - The DOM id of the component.
classList [] array - Array containing wrapping classes array
attributeList [] array - Array containing keys and values rendered as attributes
containerAware false boolean true/false Makes the component container aware. Appends modifiers --size--xs/sm/md/lg to the component.
Settings location: /mnt/persist/www/docroot_styleguide_v2/source/library/source/php/Component/Link/link.json