How to use the emotion.cx function in emotion

To help you get started, we’ve selected a few 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 grafana / grafana / packages / grafana-ui / src / components / Forms / FieldValidationMessage.tsx View on Github external
export const FieldValidationMessage: React.FC = ({ children, className }) => {
  const theme = useTheme();
  const styles = getFieldValidationMessageStyles(theme);

  return (
    <div>
      <i>
      {children}
    </i></div><i>
  );
};
</i>
github staylor / graphql-wordpress / packages / draft / src / routes / App / index.js View on Github external
return null;
    }

    const social = (
      
        {socialSettings.instagramUsername &amp;&amp; (
          <a href="{`$https://instagram.com/${socialSettings.instagramUsername}`}">
            <span>Instagram</span>
          </a>
        )}
        {socialSettings.twitterUsername &amp;&amp; (
          <a href="{`https://twitter.com/${socialSettings.twitterUsername}`}">
            <span>Twitter</span>
          </a>
        )}
        {socialSettings.facebookUrl &amp;&amp; (
          <a href="{socialSettings.facebookUrl}">
            <span>Facebook</span>
          </a>
        )}
      
    );

    return (
      
        <div></div>
github dcos-labs / ui-kit / packages / typeahead / stories / helpers / itemMocks.tsx View on Github external
const ComplexItem = props =&gt; (
  <div>
    <div>
      <img alt="placeholder" src="http://placehold.it/24x24">
    </div>
    <div>
      <p>{props.title}</p>
      <p>
        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed blandit
        pretium felis ac accumsan.
      </p>
    </div>
  </div>
);
github dcos-labs / ui-kit / packages / typeahead / stories / helpers / itemMocks.tsx View on Github external
const ComplexItem = props =&gt; (
  <div>
    <div>
      <img alt="placeholder" src="http://placehold.it/24x24">
    </div>
    <div>
      <p>{props.title}</p>
      <p>
        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed blandit
        pretium felis ac accumsan.
      </p>
    </div>
  </div>
);
github grafana / grafana / public / app / features / admin / UserProfile.tsx View on Github external
render() {
    const { label, value, locked, lockMessage, inputType } = this.props;
    const labelClass = cx(
      'width-16',
      css`
        font-weight: 500;
      `
    );
    const editButtonContainerClass = cx('pull-right');

    if (locked) {
      return ;
    }

    return (
      
        {label}
        
          {this.state.editing ? (
github dcos-labs / ui-kit / packages / textInput / components / TextInputWithBadges.tsx View on Github external
{({ getValidationErrors, getHintContent, isValid, describedByIds }) =&gt; (
          
            <div>
              {this.getIconStartContent()}
              {this.props.badges &amp;&amp;
                this.props.badges.map(badge =&gt; (
                  <span>
                    
                      
                        </span></div>
github dcos-labs / ui-kit / packages / shared / styles / styleUtils / layout / handleResponsiveStyle.ts View on Github external
const parseResponsiveStyle = (
  property: CSSPropertyKeys,
  value?: ResponsiveValues
) => {
  if (value === undefined || value === "" || value === null) {
    return;
  }

  if (typeof value === "object") {
    return cx(
      Object.keys(value).reduce((acc, breakpoint) => {
        acc.push(
          css`
            ${atMediaUp[breakpoint](css`
              ${property}: ${value[breakpoint]};
            `)};
          `
        );
        return acc;
      }, Array())
    );
  } else {
    return css`
      ${property}: ${value};
    `;
  }
github greglobinski / react-website-themes / packages / default / src / components / Comments.js View on Github external
const Comments = props =&gt; {
  const { slug, siteUrl, themeStyle = style, customStyle = '' } = props;

  return (
    <div>
      
        
      
    </div>
  );
};
github dcos-labs / ui-kit / packages / button / stories / helpers / ButtonAppearanceSample.tsx View on Github external
export const ButtonAppearanceSampleInverted = ({ buttonComponent }) =&gt; {
  return (
    <div>
      <div>
        <p>Normal</p>
        {buttonComponent({ children: "Button", isInverse: true })}
      </div>
      <div>
        <p>Disabled</p>
        {buttonComponent({
          children: "Button",
          disabled: true,
          isInverse: true</div></div>