How to use react-tabs - 10 common examples

To help you get started, we’ve selected a few react-tabs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github PAK90 / mtg-hunter / src / CardHitsGridItem.js View on Github external
import * as React from "react";
import * as ReactDOM from "react-dom";
import * as _ from "lodash";
import "searchkit/theming/theme.scss";
import "./styles/customisations.scss";
import {TagFilter, TagFilterConfig, TagFilterList} from 'searchkit';
var ent = require('ent');
const nl2br = require('react-nl2br');
var ReactTabs = require('react-tabs');
var Tab = ReactTabs.Tab;
var Tabs = ReactTabs.Tabs;
var TabList = ReactTabs.TabList;
var TabPanel = ReactTabs.TabPanel;
import ReactStars from './modReactStars.js';
var Firebase = require('firebase');

var CardHitsGridItem = React.createClass({
	getInitialState: function() {  	
	    var {bemBlocks, result} = this.props;
	    var source = result._source;
	    // At some point, have all multiverse-specific stuff (id, flavour text, original text) as states.
	    // Then, when you click the symbol, all we have to do is load that multi's data into the states which are already in the renderer.
        return {
            clickedCard: '',
            currentMultiId: source.multiverseids[result._source.multiverseids.length - 1].multiverseid,
            currentImageMultiId: source.multiverseids[result._source.multiverseids.length - 1].multiverseid,
github PAK90 / mtg-hunter / src / CardHitsListItem.js View on Github external
import * as React from "react";
import * as ReactDOM from "react-dom";
import * as _ from "lodash";
import "searchkit/theming/theme.scss";
import "./styles/customisations.scss";
import {TagFilter, TagFilterConfig, TagFilterList} from 'searchkit';
var ent = require('ent');
const nl2br = require('react-nl2br');
var ReactTabs = require('react-tabs');
var Tab = ReactTabs.Tab;
var Tabs = require("./Tabs");
var TabList = ReactTabs.TabList;
var TabPanel = ReactTabs.TabPanel;
var Rating = require('react-rating');
import ReactStars from './modReactStars.js';
var ReactDisqusThread = require('react-disqus-thread');
var Firebase = require('firebase');
/*var Disqus = require('disqus');

var disqus = new Disqus({
    api_secret : 'var',
    api_key : 'var',
    access_token : 'var'
});*/
//var cards = require('./multiIdName.json');
//var modCards = cards;
// Turn cards object keys into the format returned by the python script.
// Just go in and create a new key, and replace each object's key with the new key.
/*for (var key in modCards) {
github PAK90 / mtg-hunter / src / CardHitsGridItem.js View on Github external
import * as React from "react";
import * as ReactDOM from "react-dom";
import * as _ from "lodash";
import "searchkit/theming/theme.scss";
import "./styles/customisations.scss";
import {TagFilter, TagFilterConfig, TagFilterList} from 'searchkit';
var ent = require('ent');
const nl2br = require('react-nl2br');
var ReactTabs = require('react-tabs');
var Tab = ReactTabs.Tab;
var Tabs = ReactTabs.Tabs;
var TabList = ReactTabs.TabList;
var TabPanel = ReactTabs.TabPanel;
import ReactStars from './modReactStars.js';
var Firebase = require('firebase');

var CardHitsGridItem = React.createClass({
	getInitialState: function() {  	
	    var {bemBlocks, result} = this.props;
	    var source = result._source;
	    // At some point, have all multiverse-specific stuff (id, flavour text, original text) as states.
	    // Then, when you click the symbol, all we have to do is load that multi's data into the states which are already in the renderer.
        return {
            clickedCard: '',
            currentMultiId: source.multiverseids[result._source.multiverseids.length - 1].multiverseid,
            currentImageMultiId: source.multiverseids[result._source.multiverseids.length - 1].multiverseid,
            currentArtist: source.multiverseids[result._source.multiverseids.length - 1].artist,
            currentFlavor: source.multiverseids[result._source.multiverseids.length - 1].flavor,
            currentOriginalText: source.multiverseids[result._source.multiverseids.length - 1].originalText,
github poetapp / explorer-web / src / components / Root.tsx View on Github external
import * as React from 'react'
import 'react-datepicker/dist/react-datepicker.css'
import { connect } from 'react-redux'
import { Tabs } from 'react-tabs'

import { Footer } from 'components/organisms/Footer'
import { Navbar } from 'components/organisms/Navbar'
import 'extensions/String'

import './Root.scss'

Tabs.setUseDefaultStyles(false)

interface RootLayoutProps {
  readonly location?: {
    readonly pathname: string,
  }
  readonly children?: React.ReactNode
}

function render(props: RootLayoutProps) {
  // TODO: templates rather than this url-matching monstrosity
  const location = props.location.pathname.trimLeftByPattern('/')

  const worksUrl = 'works'

  const navbarShadow = ![worksUrl, ''].includes(location)
  const navbarTransparent = [''].includes(location)
github PAK90 / mtg-hunter / src / CardHitsListItem.js View on Github external
import * as React from "react";
import * as ReactDOM from "react-dom";
import * as _ from "lodash";
import "searchkit/theming/theme.scss";
import "./styles/customisations.scss";
import {TagFilter, TagFilterConfig, TagFilterList} from 'searchkit';
var ent = require('ent');
const nl2br = require('react-nl2br');
var ReactTabs = require('react-tabs');
var Tab = ReactTabs.Tab;
var Tabs = require("./Tabs");
var TabList = ReactTabs.TabList;
var TabPanel = ReactTabs.TabPanel;
var Rating = require('react-rating');
import ReactStars from './modReactStars.js';
var ReactDisqusThread = require('react-disqus-thread');
var Firebase = require('firebase');
/*var Disqus = require('disqus');

var disqus = new Disqus({
    api_secret : 'var',
    api_key : 'var',
    access_token : 'var'
});*/
//var cards = require('./multiIdName.json');
//var modCards = cards;
// Turn cards object keys into the format returned by the python script.
// Just go in and create a new key, and replace each object's key with the new key.
github PAK90 / mtg-hunter / src / CardHitsGridItem.js View on Github external
import * as React from "react";
import * as ReactDOM from "react-dom";
import * as _ from "lodash";
import "searchkit/theming/theme.scss";
import "./styles/customisations.scss";
import {TagFilter, TagFilterConfig, TagFilterList} from 'searchkit';
var ent = require('ent');
const nl2br = require('react-nl2br');
var ReactTabs = require('react-tabs');
var Tab = ReactTabs.Tab;
var Tabs = ReactTabs.Tabs;
var TabList = ReactTabs.TabList;
var TabPanel = ReactTabs.TabPanel;
import ReactStars from './modReactStars.js';
var Firebase = require('firebase');

var CardHitsGridItem = React.createClass({
	getInitialState: function() {  	
	    var {bemBlocks, result} = this.props;
	    var source = result._source;
	    // At some point, have all multiverse-specific stuff (id, flavour text, original text) as states.
	    // Then, when you click the symbol, all we have to do is load that multi's data into the states which are already in the renderer.
        return {
            clickedCard: '',
            currentMultiId: source.multiverseids[result._source.multiverseids.length - 1].multiverseid,
            currentImageMultiId: source.multiverseids[result._source.multiverseids.length - 1].multiverseid,
            currentArtist: source.multiverseids[result._source.multiverseids.length - 1].artist,
            currentFlavor: source.multiverseids[result._source.multiverseids.length - 1].flavor,
github PAK90 / mtg-hunter / src / CardHitsGridItem.js View on Github external
import * as React from "react";
import * as ReactDOM from "react-dom";
import * as _ from "lodash";
import "searchkit/theming/theme.scss";
import "./styles/customisations.scss";
import {TagFilter, TagFilterConfig, TagFilterList} from 'searchkit';
var ent = require('ent');
const nl2br = require('react-nl2br');
var ReactTabs = require('react-tabs');
var Tab = ReactTabs.Tab;
var Tabs = ReactTabs.Tabs;
var TabList = ReactTabs.TabList;
var TabPanel = ReactTabs.TabPanel;
import ReactStars from './modReactStars.js';
var Firebase = require('firebase');

var CardHitsGridItem = React.createClass({
	getInitialState: function() {  	
	    var {bemBlocks, result} = this.props;
	    var source = result._source;
	    // At some point, have all multiverse-specific stuff (id, flavour text, original text) as states.
	    // Then, when you click the symbol, all we have to do is load that multi's data into the states which are already in the renderer.
        return {
            clickedCard: '',
            currentMultiId: source.multiverseids[result._source.multiverseids.length - 1].multiverseid,
            currentImageMultiId: source.multiverseids[result._source.multiverseids.length - 1].multiverseid,
            currentArtist: source.multiverseids[result._source.multiverseids.length - 1].artist,
github PAK90 / mtg-hunter / src / CardHitsListItem.js View on Github external
import * as React from "react";
import * as ReactDOM from "react-dom";
import * as _ from "lodash";
import "searchkit/theming/theme.scss";
import "./styles/customisations.scss";
import {TagFilter, TagFilterConfig, TagFilterList} from 'searchkit';
var ent = require('ent');
const nl2br = require('react-nl2br');
var ReactTabs = require('react-tabs');
var Tab = ReactTabs.Tab;
var Tabs = require("./Tabs");
var TabList = ReactTabs.TabList;
var TabPanel = ReactTabs.TabPanel;
var Rating = require('react-rating');
import ReactStars from './modReactStars.js';
var ReactDisqusThread = require('react-disqus-thread');
var Firebase = require('firebase');
/*var Disqus = require('disqus');

var disqus = new Disqus({
    api_secret : 'var',
    api_key : 'var',
    access_token : 'var'
});*/
//var cards = require('./multiIdName.json');
//var modCards = cards;
github cvdlab / react-planner / lib / components / sidebar / panel-guides.js View on Github external
return _react2.default.createElement(
        _panel2.default,
        { name: translator.t('Guides') },
        _react2.default.createElement(
          _reactTabs.Tabs,
          { id: 'guidesTabs', style: tabStyle },
          _react2.default.createElement(
            _reactTabs.TabList,
            null,
            _react2.default.createElement(
              _reactTabs.Tab,
              null,
              translator.t('Horizontal')
            ),
            _react2.default.createElement(
              _reactTabs.Tab,
              null,
              translator.t('Vertical')
            )
          ),
          _react2.default.createElement(
            _reactTabs.TabPanel,
            null,
            _react2.default.createElement(
              'table',
              { style: tableTabStyle },
              _react2.default.createElement(
                'tbody',
                null,
                guides.get('horizontal').entrySeq().map(function (_ref, ind) {
                  var _ref2 = _slicedToArray(_ref, 2),
                      hgKey = _ref2[0],
github cvdlab / react-planner / lib / components / sidebar / panel-guides.js View on Github external
projectActions = _context.projectActions,
          translator = _context.translator;
      var guides = state.scene.guides;


      return _react2.default.createElement(
        _panel2.default,
        { name: translator.t('Guides') },
        _react2.default.createElement(
          _reactTabs.Tabs,
          { id: 'guidesTabs', style: tabStyle },
          _react2.default.createElement(
            _reactTabs.TabList,
            null,
            _react2.default.createElement(
              _reactTabs.Tab,
              null,
              translator.t('Horizontal')
            ),
            _react2.default.createElement(
              _reactTabs.Tab,
              null,
              translator.t('Vertical')
            )
          ),
          _react2.default.createElement(
            _reactTabs.TabPanel,
            null,
            _react2.default.createElement(
              'table',
              { style: tableTabStyle },
              _react2.default.createElement(