From d313e69013afc6cabb02fadfe717303663a861d4 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Tue, 6 Mar 2018 19:59:08 -0600 Subject: [PATCH] refactor(tab-button): use instead of + ]; } } diff --git a/packages/core/src/components/tab/readme.md b/packages/core/src/components/tab/readme.md index 174630a965..b504b44113 100644 --- a/packages/core/src/components/tab/readme.md +++ b/packages/core/src/components/tab/readme.md @@ -88,6 +88,13 @@ boolean If true, the user cannot interact with the tab. Defaults to `false`. +#### href + +string + +The URL which will be used as the `href` within this tab's `` anchor. + + #### icon string @@ -170,6 +177,13 @@ boolean If true, the user cannot interact with the tab. Defaults to `false`. +#### href + +string + +The URL which will be used as the `href` within this tab's `` anchor. + + #### icon string diff --git a/packages/core/src/components/tab/tab.tsx b/packages/core/src/components/tab/tab.tsx index 3d8659570a..e9b5df7a2c 100644 --- a/packages/core/src/components/tab/tab.tsx +++ b/packages/core/src/components/tab/tab.tsx @@ -22,6 +22,11 @@ export class Tab { */ @Prop() title: string; + /** + * The URL which will be used as the `href` within this tab's `` anchor. + */ + @Prop() href: string; + /** * The icon for the tab. */ @@ -120,9 +125,6 @@ export class Tab { }; } - render() { - return ; - } } function attachViewToDom(container: HTMLElement, cmp: string): Promise {