How to use the radium function in radium

To help you get started, we’ve selected a few radium 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 hallister / semantic-react / src / components / radium.jsx View on Github external
let RadiumCards = Radium(Cards);

let RadiumMenu = Radium(Menu);
let RadiumMenuItem = Radium(MenuItem);

let RadiumComments = Radium(Comments);
let RadiumComment = Radium(Comment);

let RadiumFeed = Radium(Feed);
let RadiumEvent = Radium(Event);

let RadiumItem = Radium(Item);
let RadiumItems = Radium(Items);

let RadiumStatistic = Radium(Statistic);
let RadiumStatistics = Radium(Statistics);
let RadiumValue = Radium(Value);


// Override some components here
RadiumField.Components.Checkbox = RadiumCheckbox;
RadiumField.Components.CheckboxFields = RadiumCheckboxFields;
RadiumFields.Components.Field = RadiumField;

RadiumTr.Components.Td = RadiumTd;

RadiumMessage.Components.Icon = RadiumIcon;

RadiumBreadcrumbDivider.Components.Icon = RadiumIcon;

RadiumIconButton.Components.Icon = RadiumIcon;
RadiumIconButton.Components.Button = RadiumButton;
github styled-components / styled-components / packages / styled-components / benchmarks / src / implementations / radium / View.js View on Github external
borderStyle: 'solid',
    boxSizing: 'border-box',
    display: 'flex',
    flexBasis: 'auto',
    flexDirection: 'column',
    flexShrink: 0,
    margin: 0,
    padding: 0,
    position: 'relative',
    // fix flexbox bugs
    minHeight: 0,
    minWidth: 0
  }
};

export default Radium(View);
github pubpub / pubpub / src / containers / Discussions / DiscussionItem.jsx View on Github external
<div id="{'input-placeholder-'"></div>

				

				<div style="{styles.children}">
					{children.map((child, childIndex)=&gt; {
						return ;
					})}
				</div>

			
		);
	}
});

const WrappedDiscussionItem = Radium(DiscussionItem);
export default WrappedDiscussionItem;

styles = {
	children: {
		paddingLeft: '1em',
		borderLeft: '1px solid #E0E0E0',
	},
	// wsywigBlock: {
	// 	width: '100%',
	// 	minHeight: '4em',
	// 	backgroundColor: 'white',
	// 	margin: '0 auto',
	// 	boxShadow: '0px 1px 3px 1px #BBBDC0',
	// },
	discussionHeader: {
		display: 'table',
github sbekrin / canvaz / src / components / EditorControlBar / EditorControlBar.js View on Github external
this.props.visible &amp;&amp; styles.wrapper.visible,
    ];

    return (
      <div style="{style}">
        <div style="{styles.bar}">
          {this.renderLeftControls()}
          {this.renderMiddleControls()}
          {this.renderRightControls()}
        </div>
      </div>
    );
  }
}

export default withRadium(ControlBar);
github CommonBike / commonbike-site / app / imports / client / containers / LocationBlock / LocationBlock.jsx View on Github external
LocationBlock.contextTypes = {
  history: propTypes.historyContext
}

LocationBlock.propTypes = {
  item: PropTypes.object.isRequired,
  isEditable: PropTypes.any,
  onClick: PropTypes.any,
};

LocationBlock.defaultProps = {
  item: {},
  isEditable: false
}

export default Radium(LocationBlock);
github vincentriemer / io-808 / src / layouts / topRightSection / index.js View on Github external
instrumentColumnWidth,
            instrumentsHeight
          )}
        
        <div style="{styles.titleWrapper}">
          
          <div style="{styles.masterVolumeWrapper}">
            
          </div>
        </div>
      
    );
  }
}

export default Radium(TopRightSection);
github jolocom / smartwallet-app / legacy / src / js / components / common / icon-ether.jsx View on Github external
const IconEther = (props) =&gt; {
  return (
    <svg style="{{height:" viewBox="0 0 24 24" y="0px" x="0px">
      <path d="M12 13.975l-4.826-2.704L12 2.489l4.823 8.782z" style="{{fill:"></path>
      <path d="M12 21.51l-4.949-9.005L12 15.332l4.949-2.827z" style="{{fill:"></path>
    </svg>
  )
}
IconEther.propTypes = {
  color: PropTypes.string
}
export default Radium(IconEther)
github FormidableLabs / radium-grid / demo / app.jsx View on Github external
darkRedCell: {
    backgroundColor: colors.shade3
  },
  blackCell: {
    backgroundColor: colors.black
  },
  image: {
    maxWidth: "100%",
    maxHeight: "100%"
  },
  cellText: {
    color: colors.white
  }
};

const Wrapper = Radium(App);

ReactDOM.render(, document.getElementById("content"));