How to use the @emotion/css.cx function in @emotion/css

To help you get started, we’ve selected a few @emotion/css 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 opctl / opctl / webapp / src / components / Form / index.tsx View on Github external
export default function Form(
  {
    className,
    children,
    isValid,
    onSubmit,
    submitName
  }: Props
) {
  return (
    <form> e.preventDefault()}
    &gt;
      {children}
      {
        <input style="{{" type="submit" hidden="">
      }</form>
github opctl / opctl / webapp / src / components / Pill / index.tsx View on Github external
export default function Pill(
  {
    className,
    children,
    onClick
  }: Props
) {
  return (
    <div>
      {
        children</div>
github opctl / opctl / webapp / src / components / TextInput / index.tsx View on Github external
export default function TextInput(
  props: Props
) {
  return (
    <input> props.onChange(target.value)}
    /&gt;
  )
}
github opctl / opctl / webapp / src / components / InputGroup / index.tsx View on Github external
export default function InputGroup(props) {
  return (
    <div>
      {props.children}
    </div>
  )
}
github opctl / opctl / webapp / src / components / PanelRow / index.tsx View on Github external
export default function PanelRow(
  {
    className,
    children
  }: Props
) {
  return (
    <div>
      {children}
    </div>

  )
}
github opctl / opctl / webapp / src / components / Container / index.tsx View on Github external
export default function Container(
  {
    className,
    style,
    children
  }: Props
) {
  return (
    <div style="{style}">
      {
        children
      }
    </div>
  )
}
github opctl / opctl / webapp / src / components / AutoComplete / index.tsx View on Github external
? renderIcon()
              : null
          }
          <input>
        
      }
      suggestions={options}
      shouldRenderSuggestions={
        shouldSearch
          ? shouldSearch
          : () =&gt; true
      }
      theme={{
        container: cx(
          css({
            width: '100%',
            position: 'relative'
          }),
          className
        ),
        input: css({
          ...formElementStyles,
          backgroundColor: brandColors.white,
          color: brandColors.black,
          padding: '1rem 1.2rem',
          width: '100%'
        }),
        suggestionsContainerOpen: css({
          backgroundColor: brandColors.white,
          border: `1px solid ${brandColors.lightGray}`,
github opctl / opctl / webapp / src / components / Modal / index.tsx View on Github external
export default function Modal(
  {
    children,
    className,
    isCompleteDisabled,
    isOpen,
    onComplete,
    onClose,
    title,
  }: Props
) {
  return (
github opctl / opctl / webapp / src / components / PanelSection / index.tsx View on Github external
export default function PanelSection(props) {
  return (
    <div>
      <div>
        {props.title}
        {
          props.summary &amp;&amp;
          <div></div></div></div>

@emotion/css

The Next Generation of CSS-in-JS.

MIT
Latest version published 1 month ago

Package Health Score

84 / 100
Full package analysis