<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Emily Quinn on Medium]]></title>
        <description><![CDATA[Stories by Emily Quinn on Medium]]></description>
        <link>https://medium.com/@emkquinn?source=rss-c436fe4b104a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Emily Quinn on Medium</title>
            <link>https://medium.com/@emkquinn?source=rss-c436fe4b104a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 05:44:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@emkquinn/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to integrate Material UI in 3 easy steps]]></title>
            <link>https://medium.com/@emkquinn/how-to-integrate-material-ui-in-3-easy-steps-daef6b239fe8?source=rss-c436fe4b104a------2</link>
            <guid isPermaLink="false">https://medium.com/p/daef6b239fe8</guid>
            <category><![CDATA[react-material-ui]]></category>
            <category><![CDATA[ui-design]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[ui-library]]></category>
            <category><![CDATA[tutorial]]></category>
            <dc:creator><![CDATA[Emily Quinn]]></dc:creator>
            <pubDate>Thu, 31 Jan 2019 14:02:26 GMT</pubDate>
            <atom:updated>2019-01-31T14:02:26.348Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_mdpsmNUZ05vQb-q09t3jA.png" /></figure><h3>Step 1: Download necessary packages</h3><p>This tutorial assumes you already have <a href="https://reactjs.org/">react</a> and <a href="https://reactjs.org/docs/react-dom.html">react-dom</a> installed, which are peer dependencies for Material UI.</p><ol><li>Material UI</li></ol><pre>npm install @material-ui/core</pre><h3>Step 2: Import needed components</h3><p>For this tutorial, I decided to focus on utilizing the following Material UI components:</p><ol><li>AppBar- creates navigation bar at the top of the screen</li><li>Toolbar- allows for the navigation bar to move down the page as the user scrolls</li><li>Button- similar to html &lt;button&gt; component</li><li>TextField- similar to html &lt;input&gt; component</li><li>FormLabel- used to label a form</li><li>Card- used to organize information in a card-like structure</li><li>CardContent- used to wrap information inside of the Card component</li><li>CardMedia- used for images or other media inside a Card component</li><li>Typography- used for formatting text</li><li>withStyles- (imported with deconstruction) used to create CSS-like classes to format Material UI components</li></ol><h3>Step 3: Code!</h3><p>Once you’ve imported the Material UI components, it’s time to nest your code inside of the Material UI components.</p><h4>Let’s start with the navigation bar:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CwDkWRVvQ9kdbWjvtB09SQ.png" /><figcaption><strong>Before implementing Material UI</strong></figcaption></figure><p>Use the code below by wrapping your content in the respective Material UI components. If you run into issues, you can review the AppBar documentation <a href="https://material-ui.com/demos/app-bar/">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-p0rvFfDCjKxPRkbPxhWHw.png" /><figcaption><strong>Note use of AppBar, Toolbar, and Button Material UI components</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y5MLXBTHbstBUskeaMSOeQ.png" /><figcaption><strong>After Material UI implementation</strong></figcaption></figure><h4>Next, let’s look at text inputs and forms:</h4><p>You’ll need to repeat Step 2, and import the appropriate Material UI components: FormLabel, TextField, and Button</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b1YzkyfCbzRS78xMv4pEtw.png" /><figcaption><strong>Before implementing Material UI</strong></figcaption></figure><p>Similar to the navigation bar, wrap your content in the appropriate Material UI components. Review the <a href="https://material-ui.com/api/form-label/">FormLabel</a> and <a href="https://material-ui.com/api/text-field/">TextField</a> documentation, if needed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z00Z7369vHMP5evC_Ym3Xg.png" /><figcaption><strong>Note use of FormLabel, TextField, and Button Material UI components</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*891q9YNJKgxGsWXRVHn7xw.png" /><figcaption><strong>After Material UI implementation</strong></figcaption></figure><h4>Last but not least, let’s integrate a card component:</h4><p>Repeat Step 2, and import the appropriate Material UI components: Card, CardContent, CardMedia, Button, and Typography.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*tZvCwxZIm8dy2OAGrk5Cvw.png" /><figcaption><strong>Before Material UI implementation</strong></figcaption></figure><p>For the card component, we’ll create a variable called styles with we’ll use to define classNames inside of the Material UI components.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EXQFUVmYbIBlqNdmPtCA-w.png" /><figcaption><strong>Note Material UI components imported and styles variable used for formatting</strong></figcaption></figure><p>In order to do this utilize the styles variable correctly, make sure you wrap your react component with “withStyles” and “styles” when exporting. See image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A9D5vtzjBCDBh4h32gVDDQ.png" /><figcaption><strong>Export react component within the Material UI withStyles component</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9Iz1xb3DBePLAlMCJPtYCA.png" /><figcaption><strong>Note that the rest of the class component was left out for simplicity purposes</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/1*Pp5NpOx8c3r3HPjOjEQVYA.png" /><figcaption><strong>After Material UI implementation</strong></figcaption></figure><h4>And that’s it!</h4><p>I hope you’ve found some useful tools in this tutorial. There’s much more to Material UI, but this should hopefully get you started.</p><p>To incorporate other components and designs, head over to <a href="https://material-ui.com/">Material UI’s documentation</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=daef6b239fe8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>