How to use react-emotion - 10 common examples

To help you get started, we’ve selected a few react-emotion 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 lskjs / ux / src / Loaders / ScaleRippleMulti / ScaleRippleMulti.styles.js View on Github external
function count(n = 4, start = 1) { // eslint-disable-line consistent-return
  const list = range(start, n).map(i => `
      &:nth-child(${i}) {
        animation-delay: ${delay(0.2, n, i - 1)}s;
      }
  `);
  return css(list.join('\n'));
}
github lskjs / ux / src / Loaders / BallPulseSync / BallPulseSync.styles.js View on Github external
function count(n = 4, start = 1) { // eslint-disable-line consistent-return
  const list = range(start, n).map(i => `
      &:nth-child(${i}) {
        animation: ${pulseSync} 0.6s ${delay(0.07, n, i)}s infinite ease-in-out;
      }
  `);
  return css(list.join('\n'));
}
github lskjs / ux / src / Loaders / LineScale / LineScale.styles.js View on Github external
function count(n = 6, start = 1) { // eslint-disable-line consistent-return
  const list = range(start, n).map(i => `
      &:nth-child(${i}) {
        animation: ${lineScale} 1s ${delay(0.1, n, i)}s infinite cubic-bezier(.2,.68,.18,1.08);
      }
  `);
  return css(list.join('\n'));
}
github appbaseio / designkit / src / molecules / Feature / Feature.js View on Github external
render() {
		const { children, className, style } = this.props;
		return (
			<div style="{style}">
				{children}
			</div>
		);
	}
}
github veteransaffairscanada / vac-benefits-directory / components / typography / header2.js View on Github external
render() {
    const { className, children } = this.props;
    return (
      <h2>{children}</h2>
    );
  }
}
github veteransaffairscanada / vac-benefits-directory / components / typography / header4.js View on Github external
render() {
    const { className, children } = this.props;
    return (
      <div>{children}</div>
    );
  }
}
github veteransaffairscanada / vac-benefits-directory / components / typography / header1.js View on Github external
render() {
    const { className, children } = this.props;
    return (
      <h1>{children}</h1>
    );
  }
}
github poketo / poketo-reader / src / components / text-area.js View on Github external
const TextArea = ({ className, disabled, ...rest }: Props) =&gt; (
  
);
github appbaseio / dashboard / src / shared / AppButton.js View on Github external
const styles = (color, backgroundColor) =>
	css(
		backgroundColor && {
			backgroundColor,
			'&:hover, &:focus': {
				backgroundColor: shade(backgroundColor, -0.1),
				color,
			},
		},
		color && {
			color,
		},
		{
			whiteSpace: 'nowrap',
		},
	);
github appbaseio / dashboard / src / components / PricingTable / AppButton.js View on Github external
const styles = (color, backgroundColor) =>
	css(
		backgroundColor && {
			backgroundColor,
			'&:hover, &:focus': {
				backgroundColor: shade(backgroundColor, -0.1),
				color,
			},
		},
		color && {
			color,
		},
		{
			whiteSpace: 'nowrap',
		},
	);

react-emotion

This package is not relevant in Emotion 10, please use @emotion/styled

MIT
Latest version published 6 years ago

Package Health Score

51 / 100
Full package analysis

Popular react-emotion functions