goetzrobin / spartan

Cutting-edge tools powering Angular full-stack development.
https://spartan.ng
MIT License
1.22k stars 133 forks source link

feat(tabs): expose hlm-tabs component #157

Closed marcjulian closed 6 months ago

marcjulian commented 6 months ago

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

Which package are you modifying?

What is the current behavior?

User need to use BrnTabsDirective in the template.

<div brnTabs="account">
  ...
</div>

What is the new behavior?

Exposes a HlmTabsComponent to be used instead of BrnTabsDirective. HlmTabsComponent has BrnTabsDirective as host directive and exposes all inputs. Active tab is provided with tab input.

<hlm-tabs tab="account">
  ...
</hlm-tabs>

I have updated the tabs examples to only use HlmTabs* imports.

Does this PR introduce a breaking change?

Other information