How to use the @remirror/ui.useRemirrorTheme function in @remirror/ui

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-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,
  ) => {
    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 && ;

    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