How to use react-css-themr - 10 common examples

To help you get started, we’ve selected a few react-css-themr 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 Codebrahma / react-lite-ui / lib / drawer / index.js View on Github external
position: PropTypes.oneOf(['top', 'left', 'bottom', 'right']),
  // eslint-disable-next-line react/no-unused-prop-types
  open: PropTypes.bool,
  onClose: PropTypes.func,
};

Drawer.defaultProps = {
  theme: defaultTheme,
  className: '',
  position: 'left',
  children: null,
  open: false,
  onClose: () => {},
};

export default themr('CBDrawer', defaultTheme)(Drawer);
github Codebrahma / react-lite-ui / lib / checkbox / index.js View on Github external
additionalClass: PropTypes.string,
  theme: PropTypes.object, // eslint-disable-line
  inverted: PropTypes.bool,
};

Checkbox.defaultProps = {
  label: null, // Should send a name if they need the callback value
  onClick: () => {},
  checked: false,
  additionalClass: '',
  theme: defaultTheme,
  value: '',
  inverted: false,
};

export default themr('CBCheckbox', defaultTheme)(Checkbox);
github Codebrahma / react-lite-ui / lib / slider / index.js View on Github external
onChange: PropTypes.func,
  range: PropTypes.bool,
};

Slider.defaultProps = {
  min: 0,
  max: 100,
  theme: defaultTheme,
  disabled: false,
  range: false,
  onChange: (min, max) => {
    console.log({ min, max });
  },
};

export default themr('CBSlider', defaultTheme)(Slider);
github Codebrahma / react-lite-ui / lib / tooltip / index.js View on Github external
tooltipText: PropTypes.string.isRequired,
  top: PropTypes.bool,

};

Tooltip.defaultProps = {
  children: null,
  className: '',
  theme: defaultTheme,
  image: null,
  alt: '',
  title: '',
  top: undefined,
};

export default themr('CBTooltip', defaultTheme)(Tooltip);
github Codebrahma / react-lite-ui / lib / table / index.js View on Github external
Table.propTypes = {
  theme: PropTypes.oneOfType([PropTypes.object]),
  columns: PropTypes.oneOfType([PropTypes.array]).isRequired,
  data: PropTypes.oneOfType([PropTypes.array]).isRequired,
  sort: PropTypes.bool,
  sortByTitle: PropTypes.bool,
};

Table.defaultProps = {
  theme: defaultTheme,
  sort: false,
  sortByTitle: false,
};

export default themr('CBTable', defaultTheme)(Table);
github Vizzuality / climate-watch / app / javascript / app / components / dropdown / dropdown-component.jsx View on Github external
info: PropTypes.bool,
  infoText: PropTypes.string,
  theme: PropTypes.object,
  hasSearch: PropTypes.bool,
  loading: PropTypes.bool,
  disabled: PropTypes.bool,
  blueBorder: PropTypes.bool,
  selectorRef: PropTypes.func,
  colorDot: PropTypes.string,
  required: PropTypes.bool,
  optional: PropTypes.bool,
  value: PropTypes.object,
  disclaimer: PropTypes.string
};

export default themr('Dropdown', styles)(Dropdown);
github Vizzuality / climate-watch / app / javascript / app / components / multiselect / multiselect-component.jsx View on Github external
infoText: PropTypes.string,
  label: PropTypes.string,
  selectedLabel: PropTypes.string,
  children: PropTypes.node,
  loading: PropTypes.bool,
  hideSelected: PropTypes.bool,
  mirrorX: PropTypes.bool,
  icon: PropTypes.object
};

Multiselect.defaultProps = {
  selectedClassName: styles.selected,
  loading: false
};

export default themr('MultiSelect', styles)(Multiselect);
github Vizzuality / climate-watch / app / javascript / app / components / fieldset / fieldset-component.jsx View on Github external
>
      {failMessage}
    
    {React.Children.map(children, Child => cloneElement(Child, { failed }))}
  
);

Fieldset.propTypes = {
  children: PropTypes.object.isRequired,
  theme: PropTypes.object,
  failed: PropTypes.bool,
  failMessage: PropTypes.string,
  className: PropTypes.string
};

export default themr('Fieldset', styles)(Fieldset);
github Vizzuality / climate-watch / app / javascript / app / components / modal / modal-header-component.jsx View on Github external
{children}
      
    );
  }
}

ModalHeader.propTypes = {
  title: PropTypes.string,
  tabTitles: PropTypes.array,
  selectedIndex: PropTypes.number,
  handleTabIndexChange: PropTypes.func,
  children: PropTypes.node,
  theme: PropTypes.object
};

export default themr('ModalHeader', styles)(ModalHeader);
github Vizzuality / climate-watch / app / javascript / app / components / my-climate-watch / viz-creator / components / charts / tooltip / tooltip-component.jsx View on Github external
))}
  
);

Tooltip.propTypes = {
  label: PropTypes.any,
  tooltip: PropTypes.object,
  payload: PropTypes.array,
  sort: PropTypes.bool.isRequired
};

Tooltip.defaultProps = {
  sort: false
};

export default themr('Tooltip', theme)(Tooltip);

react-css-themr

React CSS Themr

MIT
Latest version published 8 years ago

Package Health Score

51 / 100
Full package analysis

Popular react-css-themr functions