inovex / elements

Lovingly crafted ui components based on web components. Works well with all Frameworks - including Angular, React and Vue.
https://elements.inovex.de
MIT License
69 stars 9 forks source link

New component: ino-link #323

Closed silentHoo closed 1 year ago

silentHoo commented 3 years ago

As an inovex-elements user I have the need to have a link component available. I have added a link in 2 places when building the elements landing page, which looks like a button from the styling. Without a link component, I am forced to use incorrect HTML semantics (an tag around the ).

For this reason, a link component that renders an tag but allows styling of the ino-button (with a variant property) among other things would be ideal.   Acceptance Criteria

  • Link component renders button in the design of a link (see also Bootstrap Button Link).
janivo commented 1 year ago

No need as the button supports <a> elements in its slot. Alternatively, the native <a> element can be used as it is styled by our own stylesheet: https://github.com/inovex/elements/blob/c1279b64867ae3c2834715edf9c4f201913c87f2/packages/elements/src/global/styles.scss#L8-L13