{"id":7460,"date":"2023-10-21T16:20:33","date_gmt":"2023-10-21T10:50:33","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=7460"},"modified":"2023-10-21T16:20:40","modified_gmt":"2023-10-21T10:50:40","slug":"building-user-interfaces-with-material-ui-in-react-js","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/building-user-interfaces-with-material-ui-in-react-js\/","title":{"rendered":"Building User Interfaces with Material-UI in React Js"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Introduction: <\/strong> Material UI is a popular React UI framework that provides pre-designed components and styling guidelines to build responsive user interfaces. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Installation:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">npm install @mui\/material @mui\/icons-material<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Use the below components to Design a Responsive Mode:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Typography: <\/strong> The Typography component makes it easy to apply a default set of font weights and sizes. We will use it to add labels or titles\u2026<br>&lt;Typography&gt;Material UI&#8230;.&lt;\/Typography&gt;<\/li>\n\n\n\n<li><strong>Text Field:<\/strong> Text Fields let users enter and edit text. Based on the variant we can select the text field border.                                                                                                                                       &lt;TextField variant=&#8221;outlined&#8221; Placeholder=&#8221;Outlined&#8221; \/&gt;<\/li>\n\n\n\n<li><strong>Button:<\/strong> It is a user interface component that provides a clickable element in our application.    import Button from &#8216;@mui\/material\/Button&#8217;                                                                                         &lt;Button variant=&#8221;contained&#8221; color=&#8221;primary&#8221; style={{backgroundColor:&#8221;green&#8221; color:&#8221;gray&#8221;&gt; Submit&lt;\/Button&gt;<\/li>\n\n\n\n<li><strong>Media Queries:<\/strong> Use CSS media queries to define different styles and layouts for various screen sizes and resolutions. Media queries allow us to apply specific styles when conditions are met.<br><\/li>\n\n\n\n<li><strong>Responsive Grid Systems<\/strong>: Implement responsive typography using relative units like <code>em<\/code>, <code>rem<\/code>, and <code>vw<\/code>. Adjust font sizes based on screen width for improved readability. <\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: Material UI is a popular React UI framework that provides pre-designed components and styling guidelines to build responsive user [&hellip;]<\/p>\n","protected":false},"author":501,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1023],"tags":[],"class_list":["post-7460","post","type-post","status-publish","format-standard","hentry","category-ui-ux-design","psol-cat-ui-ux-design"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-1Wk","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/7460","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/501"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=7460"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/7460\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=7460"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=7460"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=7460"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}