![]() ![]() Tables Zebra Striped Table Responsive Tables Comparison Table Images Slideshow Slideshow Gallery Modal Images Lightbox Responsive Image Grid Image Grid Tab Gallery Image Overlay Fade Image Overlay Slide Image Overlay Zoom Image Overlay Title Image Overlay Icon Image Effects Black and White Image Image Text Image Text Blocks Transparent Image Text Full Page Image Form on Image Hero Image Side-by-Side Images Rounded Images Avatar Images Responsive Images Center Images Thumbnails Meet the Team Sticky Image Flip an Image Shake an Image Portfolio Gallery Portfolio with Filtering Image Zoom Image Magnifier Glass Image Comparison Sliderīuttons Alert Buttons Outline Buttons Split Buttons Animated Buttons Fading Buttons Button on Image Social Media Buttons Read More Read Less Loading Buttons Download Buttons Icon Buttons Next/prev Buttons More Button in Nav Block Buttons Text Buttons Round Buttons Scroll To Top Buttonįorms Login Form Signup Form Checkout Form Contact Form Social Login Form Register Form Form with Icons Newsletter Responsive Form Clear Input Field Copy Text to Clipboard Animated Search Search Button Fullscreen Search Custom Checkbox/Radio Custom Select Toggle Switch Check Checkbox Password Validation Toggle Password Visibility Multiple Step Form Autocompleteįilters Filter List Filter Table Filter Elements Filter Dropdown Sort List Sort Table We’ve only used one breakpoint in this example, but you could easily customize this component at other sizes using the sm, lg, xl, or 2xl responsive prefixes as well.Menus Icon Bar Menu Icon Accordion Tabs Vertical Tabs Tab Headers Full Page Tabs Top Navigation Responsive Topnav Search Menu Search Bar Fixed Sidebar Side Navigation Fullscreen Navigation Off-Canvas Menu Hover Sidenav Buttons Horizontal Scroll Menu Vertical Menu Bottom Navigation Responsive Bottom Nav Bottom Border Nav Links Right Aligned Menu Links Centered Menu Links Fixed Menu Slide Down Bar on Scroll Hide Navbar on Scroll Sticky Navbar Hover Dropdowns Click Dropdowns Dropdown in Topnav Dropdown in Sidenav Resp Navbar Dropdown Dropup Mega Menu Mobile Menu Pagination Breadcrumbs Button Group Vertical Button Group Sticky Social Bar Responsive Header ![]() ![]() On medium screens and up, we’ve constrained the width to a fixed size and ensured the image is full height using md:h-full md:w-48. On small screens the image is automatically full width by default. ![]() Technically we could have just used shrink-0 since it would do nothing on smaller screens, but since it only matters on md screens, it’s a good idea to make that clear in the class name. When the parent is a flex container, we want to make sure the image never shrinks, so we’ve added md:shrink-0 to prevent shrinking on medium screens and larger.By default, the outer div is display: block, but by adding the md:flex utility, it becomes display: flex on medium screens and larger.Company retreats Incredible accommodation for your team Looking to take your team away on a retreat to enjoy awesome food and take in some sunshine? We have a list of places to do just that. Here’s a simple example of a marketing page component that uses a stacked layout on small screens, and a side-by-side layout on larger screens (resize your browser to see it in action): This works for every utility class in the framework, which means you can change literally anything at a given breakpoint - even things like letter spacing or cursor styles. To add a utility but only have it take effect at a certain breakpoint, all you need to do is prefix the utility with the breakpoint name, followed by the : character: There are five breakpoints by default, inspired by common device resolutions: Breakpoint prefix Every utility class in Tailwind can be applied conditionally at different breakpoints, which makes it a piece of cake to build complex responsive interfaces without ever leaving your HTML. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |