How to use the react-styleguidist/lib/rsg-components/Styled function in react-styleguidist

To help you get started, we’ve selected a few react-styleguidist 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 OlegChulakovStudio / react-interactions / styleguide / components / Components / ComponentsRenderer.js View on Github external
React component for micro-interactions
				
			
			{children}
			<div>
				© Chulakov Digital
			</div>
		
	);
};

ComponentsRenderer.propTypes = {
	children: PropTypes.node.isRequired,
};

export default Styled(styles)(ComponentsRenderer);
github bootstrap-styled / v4 / styleguide / components / LayoutRenderer.js View on Github external
theme : PropTypes.object,
  /** define if the sidebar should be displayed */
  hasSidebar: PropTypes.bool,
  /** define the logo used by the layout */
  logo: PropTypes.string,
  /** logo link */
  logoHref: PropTypes.string,
  /** define the bottom logo used by the layout */
  bottomLogo: PropTypes.string,
  /** bottom logo link */
  bottomLogoHref: PropTypes.string,
  /** text prefix of bottom logo */
  bottomLogoText: PropTypes.string,
};

const LayoutRendererOriginal = Styled(styles)(LayoutRenderer);

export default (props) =&gt; ;
github OlegChulakovStudio / chramework / styleguide / components / TableOfContents / TableOfContents.js View on Github external
/&gt;
        
        {children}
      
    
  );
}

TableOfContentsRenderer.propTypes = {
  classes: PropTypes.object.isRequired,
  children: PropTypes.node,
  searchTerm: PropTypes.string.isRequired,
  onSearchTermChange: PropTypes.func.isRequired,
};

export default Styled(styles)(TableOfContentsRenderer);
github OlegChulakovStudio / chramework / styleguide / components / StyleGuideRenderer / StyleGuideRenderer.js View on Github external
{toc}
        }
    
  );
}

StyleGuideRenderer.propTypes = {
  classes: PropTypes.object.isRequired,
  title: PropTypes.string.isRequired,
  homepageUrl: PropTypes.string.isRequired,
  children: PropTypes.node.isRequired,
  toc: PropTypes.node.isRequired,
  hasSidebar: PropTypes.bool,
};

export default Styled(styles)(StyleGuideRenderer);
github OlegChulakovStudio / chramework / styleguide / components / PlaygroundRenderer / PlaygroundRenderer.js View on Github external
<div>{tabBody}</div>
		
	);
}

PlaygroundRenderer.propTypes = {
	classes: PropTypes.object.isRequired,
	name: PropTypes.string.isRequired,
	preview: PropTypes.node.isRequired,
	tabButtons: PropTypes.node.isRequired,
	tabBody: PropTypes.node.isRequired,
	toolbar: PropTypes.node.isRequired
};

export default Styled(styles)(PlaygroundRenderer);
github OlegChulakovStudio / chramework / styleguide / components / SectionHeadingRenderer / SectionHeadingRenderer.js View on Github external
toolbar: {
    marginLeft: 'auto',
  },
});

SectionHeadingRenderer.propTypes = {
  classes: PropTypes.object.isRequired,
  children: PropTypes.node,
  toolbar: PropTypes.node,
  id: PropTypes.string.isRequired,
  href: PropTypes.string.isRequired,
  primary: PropTypes.bool,
  deprecated: PropTypes.bool,
};

export default Styled(styles)(SectionHeadingRenderer);
github OlegChulakovStudio / chramework / styleguide / components / Logo / Logo.js View on Github external
});

export function LogoRenderer({ classes, children }) {
  return (
    <h1>
      
    </h1>
  );
}

LogoRenderer.propTypes = {
  classes: PropTypes.object.isRequired,
  children: PropTypes.node,
};

export default Styled(styles)(LogoRenderer);
github GetStream / react-activity-feed / src / styleguideComponents / PathlineRenderer.js View on Github external
}
        target="blank"
        rel="noopener"
      &gt;
        {source}
      
    
  );
}

PathlineRenderer.propTypes = {
  classes: PropTypes.object.isRequired,
  children: PropTypes.string,
};

export default Styled(styles)(PathlineRenderer);
github skbkontur / retail-ui / packages / retail-ui / .styleguide / components / IssueList / IssueList.tsx View on Github external
{componentExistsInGuide &amp;&amp; (
            
              Компонент в гайдах
            
          )}
          
            Создать задачу
          
        
      
    );
  }
}

export default Styled(styles)(IssueList);
github digipolisantwerp / acpaas-ui_react / styleguide / components / Logo.js View on Github external
export function LogoRenderer({ classes, children }) {
	return (
		<h1>
			<img src="{logo}">
			{children}
		</h1>
	);
}

LogoRenderer.propTypes = {
	classes: PropTypes.object.isRequired,
	children: PropTypes.node,
};

export default Styled(styles)(LogoRenderer);