Adding descriptions

This commit is contained in:
Belén Curcio
2018-09-10 13:22:57 -03:00
parent a8b24187cb
commit b608e8a521
4 changed files with 29 additions and 7 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
---
name: TabBar
name: Tab
menu: UI Kit
---
+13 -2
View File
@@ -12,10 +12,21 @@ export interface TabBarProps {
* Override or extend the styles applied to the component.
*/
classes: typeof styles;
/**
* The id/name of the tab
*/
tabId: string;
/**
* Active status
*/
active: boolean;
color: string;
/**
* Color style variant
*/
color: "primary" | "secondary";
/**
* Action taken on tab click
*/
onTabClick?: (tabId: string) => void;
}
+12 -4
View File
@@ -12,13 +12,21 @@ export interface TabBarProps {
* Override or extend the styles applied to the component.
*/
classes: typeof styles;
/**
* Color style variant
*/
color: "primary" | "secondary";
/**
* Active tab id/name
*/
activeTab?: string;
/**
* Default active tab id/name
*/
defaultActiveTab?: string;
onChange?: (activeId: string) => void;
/**
* Action taken on tab click
*/
onTabClick?: (tabId: string) => void;
}
@@ -1,6 +1,9 @@
import React, { StatelessComponent } from "react";
export interface TabContentProps {
/**
* Active tab id/name
*/
activeTab?: string;
}