How to use @remirror/ui - 6 common examples

To help you get started, we’ve selected a few @remirror/ui 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 ifiokjr / remirror / @remirror / ui-icons / src / __tests__ / base-icon.spec.tsx View on Github external
it('renders default `component.remirror:icon` styles', () => {
    const { container } = render(
      
        
      ,
    );

    const svg = container.querySelector('svg');
    expect(svg).toHaveStyle(
      `color: ${baseTheme.colors.text}; background-color: ${baseTheme.colors.background};`,
    );
  });
github ifiokjr / remirror / @remirror / ui-icons / src / __tests__ / base-icon.spec.tsx View on Github external
it('renders default styles', () => {
    const { container } = render(
      
        
      ,
    );

    const svg = container.querySelector('svg');

    expect(svg).toHaveStyle(
      `color: ${baseTheme.colors.text}; background-color: ${baseTheme.colors.background};`,
    );
  });
github ifiokjr / remirror / @remirror / extension-drop-cursor / src / drop-cursor-component.tsx View on Github external
export const DropCursorComponent = ({ options, type, container }: DropCursorComponentProps) => {
  const { sx } = useRemirrorTheme();

  const { Component, ...rest } = options;

  return Component ? (
    
  ) : type === 'block' ? (
    <div>
  ) : (
    <span>
      &nbsp;
    </span></div>
github ifiokjr / remirror / @remirror / extension-drop-cursor / src / drop-cursor-component.tsx View on Github external
) : type === 'block' ? (
    <div>
  ) : (
    <span>
      &nbsp;
    </span>
  );
};
</div>
github ifiokjr / remirror / @remirror / extension-drop-cursor / src / drop-cursor-component.tsx View on Github external
export const DropCursorComponent = ({ options, type, container }: DropCursorComponentProps) =&gt; {
  const { sx } = useRemirrorTheme();

  const { Component, ...rest } = options;

  return Component ? (
    
  ) : type === 'block' ? (
    <div>
  ) : (
    <span>
      &nbsp;
    </span>
  );
};</div>
github ifiokjr / remirror / @remirror / ui-buttons / src / button.tsx View on Github external
RightIconComponent,
      renderRightIcon,
      rightIconProps = Object.create(null),
      color,
      backgroundColor,
      fontWeight,
      minWidth,
      width,
      variant = 'default',
      styles,
      children,
      ...props
    },
    ref,
  ) =&gt; {
    const remirrorTheme = useRemirrorTheme();
    const { sxx } = remirrorTheme;
    const colorStyles = omitUndefined({ color, backgroundColor });
    const otherStyles = { fontWeight, width, minWidth };

    const paddedLeftIconProps = {
      ...leftIconProps,
      styles: sxx(
        renderRightIcon || RightIconComponent || content ? { paddingRight: 1 } : undefined,
        leftIconProps.styles,
      ),
    };
    const leftIcon = renderLeftIcon
      ? renderLeftIcon({ remirrorTheme })
      : LeftIconComponent &amp;&amp; ;

    const paddedRightIconsProps = {

@remirror/ui

DEPRECATED - ui utilities for remirror

MIT
Latest version published 3 years ago

Package Health Score

45 / 100
Full package analysis

Similar packages