How to use tcomb-react - 10 common examples

To help you get started, we’ve selected a few tcomb-react 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 gcanti / tcomb-react-bootstrap / Badge.js View on Github external
'use strict';

var t = require('tcomb-react');
var Factory = require('react-bootstrap/Badge');
var name = t.react.getDisplayName(Factory);

var Type = t.struct({
  __tag__:    t.enums.of(name, name),
  pullRight:  t.maybe(t.Bool),
  children:   t.Any
}, name);

module.exports = t.react.bind(Factory, Type, {strict: false});
github gcanti / tcomb-react-bootstrap / Affix.js View on Github external
'use strict';

var t = require('tcomb-react');
var Factory = require('react-bootstrap/Affix');
var name = t.react.getDisplayName(Factory);

var Type = t.struct({
  __tag__:      t.enums.of(name, name),
  offset:       t.maybe(t.Num),
  offsetTop:    t.maybe(t.Num),
  offsetBottom: t.maybe(t.Num),
  children:     t.Any
}, name);

module.exports = t.react.bind(Factory, Type, {strict: false});
github gcanti / tcomb-react-bootstrap / Affix.js View on Github external
'use strict';

var t = require('tcomb-react');
var Factory = require('react-bootstrap/Affix');
var name = t.react.getDisplayName(Factory);

var Type = t.struct({
  __tag__:      t.enums.of(name, name),
  offset:       t.maybe(t.Num),
  offsetTop:    t.maybe(t.Num),
  offsetBottom: t.maybe(t.Num),
  children:     t.Any
}, name);

module.exports = t.react.bind(Factory, Type, {strict: false});
github gcanti / tcomb-react-bootstrap / TabPane.js View on Github external
'use strict';

var t = require('tcomb-react');
var Factory = require('react-bootstrap/TabPane');
var name = t.react.getDisplayName(Factory);

var Type = t.struct({
  __tag__:  t.enums.of(name, name),
  key:      t.maybe(t.react.Key),
  tab:      t.maybe(t.Str),
  children: t.Any
}, name);

module.exports = t.react.bind(Factory, Type, {strict: false});
github gcanti / tcomb-react-bootstrap / ModalTrigger.js View on Github external
'use strict';

var t = require('tcomb-react');
var Factory = require('react-bootstrap/ModalTrigger');
var name = t.react.getDisplayName(Factory);

var Type = t.struct({
  __tag__:    t.enums.of(name, name),
  container:  t.maybe(t.react.Mountable),
  children:   t.Any
}, name);

module.exports = t.react.bind(Factory, Type, {strict: false});
github gcanti / tcomb-react-bootstrap / Well.js View on Github external
'use strict';

var t = require('tcomb-react');
var Factory = require('react-bootstrap/Well');
var name = t.react.getDisplayName(Factory);

var BsSize = require('./util/BsSize');

var Type = t.struct({
  __tag__:      t.enums.of(name, name),
  bsSize:       t.maybe(BsSize),
  children:     t.Any
}, name);

module.exports = t.react.bind(Factory, Type, {strict: false});
github gcanti / tcomb-react-bootstrap / Badge.js View on Github external
'use strict';

var t = require('tcomb-react');
var Factory = require('react-bootstrap/Badge');
var name = t.react.getDisplayName(Factory);

var Type = t.struct({
  __tag__:    t.enums.of(name, name),
  pullRight:  t.maybe(t.Bool),
  children:   t.Any
}, name);

module.exports = t.react.bind(Factory, Type, {strict: false});
github gcanti / tcomb-react-bootstrap / Row.js View on Github external
'use strict';

var t = require('tcomb-react');
var Factory = require('react-bootstrap/Row');
var name = t.react.getDisplayName(Factory);

var Type = t.struct({
  __tag__:   t.enums.of(name, name),
  className: t.maybe(t.Str),
  children:  t.Any
}, name);

module.exports = t.react.bind(Factory, Type, {strict: false});
github gcanti / tcomb-react-bootstrap / Label.js View on Github external
'use strict';

var t = require('tcomb-react');
var Factory = require('react-bootstrap/Label');
var name = t.react.getDisplayName(Factory);

var Type = t.struct({
  __tag__:    t.enums.of(name, name),
  className:  t.maybe(t.Str),
  children:   t.Any
}, name);

module.exports = t.react.bind(Factory, Type, {strict: false});
github gcanti / tcomb-react-bootstrap / PageHeader.js View on Github external
'use strict';

var t = require('tcomb-react');
var Factory = require('react-bootstrap/PageHeader');
var name = t.react.getDisplayName(Factory);

var Type = t.struct({
  __tag__:      t.enums.of(name, name),
  children:     t.Any
}, name);

module.exports = t.react.bind(Factory, Type, {strict: false});

tcomb-react

Type checking for React components

MIT
Latest version published 8 years ago

Package Health Score

50 / 100
Full package analysis

Popular tcomb-react functions