diff --git a/components/tabs/readme.md b/components/tabs/readme.md
index 39ba55d4..d6ed7bd4 100644
--- a/components/tabs/readme.md
+++ b/components/tabs/readme.md
@@ -6,15 +6,35 @@
```jsx
import {Tab, Tabs} from 'react-toolbox';
-const TabsExample = () => (
-
- Primary content
- Secondary content
- Disabled content
- Fourth content hidden
- Fifth content
-
-);
+class TabsTest extends React.Component {
+ state = {
+ index: 1
+ };
+
+ handleTabChange = (index) => {
+ this.setState({index});
+ };
+
+ handleActive = () => {
+ console.log('Special one activated');
+ };
+
+ render () {
+ return (
+
+ Tabs
+ This tabs can be disabled or hidden
+
+ Primary content
+ Secondary content
+ Disabled content
+ Fourth content hidden
+ Fifth content
+
+
+ );
+ }
+}
```
## Tabs
diff --git a/docs/app/components/layout/main/modules/examples/tabs_example_1.txt b/docs/app/components/layout/main/modules/examples/tabs_example_1.txt
index 84373983..fa36ddbf 100644
--- a/docs/app/components/layout/main/modules/examples/tabs_example_1.txt
+++ b/docs/app/components/layout/main/modules/examples/tabs_example_1.txt
@@ -1,11 +1,27 @@
-const TabsExample = () => (
-
- Primary content
- Secondary content
- Disabled content
- Fourth content hidden
- Fifth content
-
-);
+class TabsExample extends React.Component {
+ state = {
+ index: 1
+ };
+
+ handleTabChange = (index) => {
+ this.setState({index});
+ };
+
+ render () {
+ return (
+
+ Tabs
+ This tabs can be disabled or hidden
+
+ Primary content
+ Secondary content
+ Disabled content
+ Fourth content hidden
+ Fifth content
+
+
+ );
+ }
+}
return ;
diff --git a/spec/components/tabs.jsx b/spec/components/tabs.jsx
index 39318409..73d037f2 100644
--- a/spec/components/tabs.jsx
+++ b/spec/components/tabs.jsx
@@ -2,7 +2,6 @@ import React from 'react';
import { Tabs, Tab } from '../../components/tabs';
class TabsTest extends React.Component {
-
state = {
index: 1
};
@@ -20,27 +19,12 @@ class TabsTest extends React.Component {
Tabs
This tabs can be disabled or hidden
-
-
- Primary content
-
-
-
- Secondary content
-
-
-
- Disabled content
-
-
-
- Fourth content hidden
-
-
-
- Fifth content
-
+ Primary content
+ Secondary content
+ Disabled content
+ Fourth content hidden
+ Fifth content
);