How to use the react-md.bem function in react-md

To help you get started, we’ve selected a few react-md 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 mlaursen / react-md / docs / src / components / SassDocPage / ReferenceList.jsx View on Github external
const ReferenceList = ({ references, className, ...props }) => (
  <ul>
    {references.map(({ type, name, ref, url, caption }) =&gt; {
      if (url) {
        return <a href="{url}">{caption || url}</a>;
      }

      return (
        <li>
          [{type}]
        </li>
      );
    })}
  </ul>
);
github mlaursen / react-md / docs / src / components / PhoneEmulator / PhoneEmulator.jsx View on Github external
zDepth={toolbarZDepth}
      /&gt;
    );
  }

  if (!mobile) {
    emulatorStatusBar = ;
  }

  return (
    
      {emulatorStatusBar}
      {emulatorToolbar}
      
        {children}
      
    
  );
};
github mlaursen / react-md / docs / src / components / Customization / Colors / Color.jsx View on Github external
const Color = ({ name, light, divide, color }) =&gt; {
  let colorName;
  if (color) {
    colorName = <h4>{color.replace(/-/g, ' ')}</h4>;
  }

  return (
    <li color="">
      {colorName}
      <div>{name}</div>
    </li>
  );
};
github mlaursen / react-md / docs / src / components / Customization / Colors / Color.jsx View on Github external
const Color = ({ name, light, divide, color }) =&gt; {
  let colorName;
  if (color) {
    colorName = <h4>{color.replace(/-/g, ' ')}</h4>;
  }

  return (
    <li color="">
      {colorName}
      <div>{name}</div>
    </li>
  );
};
github mlaursen / react-md / docs / src / components / PhoneEmulator / PhoneEmulator.jsx View on Github external
});
    }

    return children;
  }

  let emulatorToolbar;
  let emulatorStatusBar;
  if (toolbar) {
    emulatorToolbar = (
      {toolbarNavIcon}}
        actions={toolbarActions}
        title={toolbarTitle}
        prominent={toolbarProminent}
        prominentTitle={toolbarProminentTitle}
        zDepth={toolbarZDepth}
      /&gt;
    );
  }

  if (!mobile) {
    emulatorStatusBar = ;
  }

  return (
github mlaursen / react-md / docs / src / components / ExamplesPage / ExampleCard.jsx View on Github external
const ExampleCard = ({ title, description: propDescription, code, children: propChildren, tableCard, ...props }) =&gt; {
  let markdown = '';
  if (code !== null) {
    markdown = `
\`\`\`jsx
${code}
\`\`\`
`;
  }

  const description = (
    
  );

  let children = propChildren;
  if (tableCard &amp;&amp; description) {
    children = [
      {description},
      React.cloneElement(children, { key: 'table-card-example' }),
    ];
  } else if (!tableCard) {
    children = {description}{children};
  }

  const id = toCaterpillarCase(title.replace(/["'()'".:]/g, ''));

  return (
github mlaursen / react-md / docs / src / components / Customization / Colors / Color.jsx View on Github external
const Color = ({ name, light, divide, color }) =&gt; {
  let colorName;
  if (color) {
    colorName = <h4>{color.replace(/-/g, ' ')}</h4>;
  }

  return (
    <li color="">
      {colorName}
      <div>{name}</div>
    </li>
  );
};
github mlaursen / react-md / docs / src / components / Customization / ThemeBuilder / Message.jsx View on Github external
const Message = () =&gt; (
  <p>
    <i>
      When the save for future visits checkbox is checked, cookies will be created to store your
      theme for later visits and other pages. If you do not check this checkbox, the default theme
      will be applied when you leave this page.
    </i>
  </p>
);
github mlaursen / react-md / docs / src / components / PhoneEmulator / PhoneEmulator.jsx View on Github external
nav={{toolbarNavIcon}}
        actions={toolbarActions}
        title={toolbarTitle}
        prominent={toolbarProminent}
        prominentTitle={toolbarProminentTitle}
        zDepth={toolbarZDepth}
      /&gt;
    );
  }

  if (!mobile) {
    emulatorStatusBar = ;
  }

  return (
    
      {emulatorStatusBar}
      {emulatorToolbar}
      
        {children}
      
    
  );
};