showing results for - "styled components"
Miguel
07 Mar 2016
1npm install --save styled-components
2
3# yarn 
4yarn add styled-components
María Alejandra
13 Jun 2019
1import styled from 'styled-components'
2
3const RedText = styled.p`
4  color: red;
5`
6
7class App extends Component {}
Ignacio
10 Nov 2018
1const Button = styled.button`
2  background: transparent;
3  border-radius: 3px;
4  border: 2px solid palevioletred;
5  color: palevioletred;
6  margin: 0.5em 1em;
7  padding: 0.25em 1em;
8
9  ${props => props.primary && css`
10    background: palevioletred;
11    color: white;
12  `}
13`;
14
15const Container = styled.div`
16  text-align: center;
17`
18
19render(
20  <Container>
21    <Button>Normal Button</Button>
22    <Button primary>Primary Button</Button>
23  </Container>
24);const Button = styled.button`  background: transparent;  border-radius: 3px;  border: 2px solid palevioletred;  color: palevioletred;  margin: 0.5em 1em;  padding: 0.25em 1em;  ${props => props.primary && css`    background: palevioletred;    color: white;  `}`;const Container = styled.div`  text-align: center;`render(  <Container>    <Button>Normal Button</Button>    <Button primary>Primary Button</Button>  </Container>);
25/**
26 * Reset the text fill color so that placeholder is visible
27 */
28.npm__react-simple-code-editor__textarea:empty {
29  -webkit-text-fill-color: inherit !important;
30}
31
32/**
33 * Hack to apply on some CSS on IE10 and IE11
34 */
35@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
36  /**
37    * IE doesn't support '-webkit-text-fill-color'
38    * So we use 'color: transparent' to make the text transparent on IE
39    * Unlike other browsers, it doesn't affect caret color in IE
40    */
41  .npm__react-simple-code-editor__textarea {
42    color: transparent !important;
43  }
44
45  .npm__react-simple-code-editor__textarea::selection {
46    background-color: #accef7 !important;
47    color: transparent !important;
48  }
49}
50Normal ButtonPrimary Button
Alexa
04 Jul 2018
1npm install --save styled-components
2
Emiliano
07 May 2016
1render() {
2  return (
3    <RedText>
4      Example Text
5    </RedText>
6  );
7}
queries leading to this page
create styled node reactstyled components architecturestyled components 2astyle component container import 22styled a 22 styled componentsstyled component installas styled componentshttps 3a 2f 2fstyled components com navbarslate styled componentsimport styledstyled componentswhat is react styled componentsstyled components exampleyarn styled componentsreact styled components 26 26 cssstyled components react 5cstyled components web componentsstyled components react javascriptstyled components 27 3e 27styled components jsstyled components explainedstyled components button transparentwhat are styled componentsstyled componentstyled components meaningstyled js componentsimport styled component reactjs styled componentsstyled components check if iosstyled components docs 3a 3a in styled componentsstyped componentsnpm install styled componentsstyled 28component 29styled components codestyled components react jsstyled components in functional componentimport styled components in reactreact styled components yarnstyled components use css in javascript install styled components yarnreact styled componentsinstall styled componentsstyle a component jsstyling componenets cssreact stzled componentsstyled components installlusing styled componentscss in js react styled componentsstyled components use javascript in cssstyled components react componentstyled components vs sasscss styled componentsstyled component react js 7e styled componentsstyled components 40forstyled components com npmstyled coponent npmhow to install styled componentsstyled components comstyled jsstyled components andwhy styled componentscontainer styled component reactstyled components cssreact styledcomponentsbrand logo in styled components cssstyled componentsstyle componentsstyled reactrinstall styled components reactstyled components styledstyled reactjsreactjs styled componentsyarn install styled componentsstyled components backtickstyled components button radiusstyling logo reactstyled components in reactstyled components documentationstore colors in styled componentsstyled components styled components 2a 3ereact styled componentsreactjs website using styled componentsstyled components as 3astyled components react meaningimportstyled reactreact styled componentstyled components for reacthow to styled componentsimport styled from 27styled components 27styled component npmstyled components syntax 26 24sortactive styled componentsstyled components and reactstlyed componentsinstall styled componentsimport styled from components reactdownload style components from pagecan you style a styled div sty 3bed componentsheadcontainer styled componentsstyled components distyled styled components 26 styled componentsreact style component react styled components componentsstyled components reactstyled components reactjsstyled components 2bstyle components docsstyled components com reactstyled components brand colorstyled components importstyled components logoyarn add styled componentswhat is styled components built onstyled components npmnpm install styled componentscomponents from styled componentsstyled components 22as 22es6 components button radiusdownload styled components templatestyled components to css onlinecontainer from styled componentsstyled components 26styled components react installhow to install styled componentsstyled components installwhat are react styled componentsdefinition of styled componentsstyled components areasstyled components componentreact install styled componentsstyled components btton backgroundhow to import stled componentsstyled components in reactstyled components manualimport styled components reactstyles componentesstyled components react js 22styled components 22npm styled componentsstyled components contact pagecss in js styled componentsinstall styled componentwhat is styled components reactwith styled componentsreact styled componentsreact styledwww styled componentsstyled components cominstall styled components in reactnpm styled componentreact css styled componentsimport button from styled componentsstyled components reacthow to install styled component with yarnstyled componentsstyling component reactreact styled costyled components 26 2bstyled react componentsstyled in reactreact styled components installjavascript component stylestyled components npmstyled components definitionstyle components terminalstyled components componentsstyled component jscomponents styledstyle component reactstyled component thisstyled reactstyled components what is itstyled components 40for csswhat is styled components react styled component syntaxstyled components js reactnpm styled componentstyled components reactstyled components in react 2creact style component installstyled components 60 60styled components exampleimport styled componentsstyled compponents installusing styled comstyled components react how to usestyled components asstyled components themingstyled containersstyled components react examplestyled components installhow to import styled components in reactstyled components yarnreactjs styled componentsstyled component jsstyled components styled componentstyled components or sassstyled react componentimport styled 2c 7b css 7d from 27styled components 27styled components 26 astyled component jquerystyled web componentsadd css using styled componentsstylised input datastyled components of reactreact styled componenthow to install styled in reactrdownload styled components styled componentsstyled components importstyled components react native docsstyled components react componentsstyled components reactjsreact styled componetshow install styled componentsdocumentation styled compenentsstyled js react 60 in styled componentsstyles componentsfree download styled components templatereact 27styled components 27react styled componenetsnpm install styled components materialstyled components useyarn add styled componentsor styled componentsimport styled 2c 7b css 7d from 27styled components 27 3bnpm i styled componentsstyled components add canvas to reactstyled components for react 27 7e 27 styled componentswhat is styled components in reactjscss js componentsstyled component componentsreactda styled componentsreact cstyled componentstyled components 22as 3a 22styled component examplestyled components example projecthttps styled components for tdnpm styledstyled components conlogo with styled componentsstyled components graphic black and whitestyled component and reactinstall styled components npmreact styled compoenetnpm install styled components savestyled components javascriptstyled components 2b reactstyled components orpython styled componentsstyle component install styled components componentsinstalling styled componentswhat is styled componentswhat is styled componentsstyled component reactstyled components component componentreact styled components vs cssstyled components cssstyled components without nodestyled components 26 3astyled components docstyled component examplenpm styled componentsvhow to add styled components in reactstyled components 26 3estyled components 40 reactreagent styled componentsstyled componentsstyled components downloadlogo styled component reactreact styled componets 3e in styled componentsyarn add react styled componentsreact styled component librarytyled componentsstylish components for react appsimport styled components allstyled components 27styled component npmyarn styled componentssstyled componentsnpm styled componentsstyled components 26 3e 2ajavascript stylizedstyled components 26 26 3astyled components com cssnpm install styled componentsyled component npmstyled components