HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URLs added here will be added as <link>
s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
Any URL's added here will be added as <script>
s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
Search for and use JavaScript packages from npm here. By selecting a package, an import
statement will be added to the top of the JavaScript editor for this package.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<script type="module" src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.esm.js"></script>
<div class="flex h-screen overflow-hidden bg-white">
<div class="hidden md:flex md:flex-shrink-0">
<div class="flex flex-col w-64">
<div class="flex flex-col flex-grow pt-5 overflow-y-auto bg-white border-r">
<div class="flex flex-col flex-shrink-0 px-4">
<a class="text-lg font-semibold tracking-tighter text-black focus:outline-none focus:ring " href="/">
<span class="inline-flex items-center gap-2">
<svg class="w-5 h-5 mx-auto" viewBox="0 0 232 232" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M166.524 51.4683L116.367 101.625L65.5235 51.4683L116.367 0.62434L166.524 51.4683ZM231.11 116.054L180.953 166.898L130.796 116.054L180.953 65.8969L231.11 116.054ZM101.939 116.054L51.0948 166.898L0.250934 116.054L51.0948 65.8969L101.939 116.054ZM166.524 181.326L116.367 231.483L65.5235 181.326L116.367 130.482L166.524 181.326Z" fill="#0c0c0c"></path>
</svg>
windstatic
</span> </a>
<button class="hidden rounded-lg focus:outline-none focus:shadow-outline">
<svg fill="currentColor" viewBox="0 0 20 20" class="w-6 h-6">
<path fill-rule="evenodd" d="M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM9 15a1 1 0 011-1h6a1 1 0 110 2h-6a1 1 0 01-1-1z" clip-rule="evenodd"></path>
<path fill-rule="evenodd" d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" clip-rule="evenodd"></path>
</svg>
</button>
</div>
<div class="flex flex-col flex-grow px-4 mt-5">
<div class="hidden md:block">
<div class="relative">
<span class="absolute inset-y-0 left-0 flex items-center pl-3">
<svg class="w-5 h-5 text-gray-400" viewBox="0 0 24 24" fill="none">
<path d="M21 21L15 15M17 10C17 13.866 13.866 17 10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
</span>
<input type="text" class="w-full py-2 pl-10 pr-4 text-black bg-white border border-gray-200 focus:outline-none focus:ring focus:ring-opacity-40 focus:ring-blue-500 sm:text-sm rounded-xl placeholder:text-gray-400 focus:border-blue-500" placeholder="Search">
</div>
</div>
<nav class="flex-1 space-y-1 bg-white">
<p class="px-4 pt-4 text-xs font-semibold text-gray-400 uppercase">
Analytics
</p>
<ul>
<li>
<a class="inline-flex items-center w-full px-4 py-2 mt-1 text-sm text-gray-500 transition duration-200 ease-in-out transform rounded-lg focus:shadow-outline hover:bg-gray-100 hover:scale-95 hover:text-blue-500" href="#">
<ion-icon class="w-4 h-4 md hydrated" name="aperture-outline" role="img" aria-label="aperture outline"></ion-icon>
<span class="ml-4">
Dashboard
</span>
</a>
</li>
<li>
<a class="inline-flex items-center w-full px-4 py-2 mt-1 text-sm text-gray-500 transition duration-200 ease-in-out transform rounded-lg focus:shadow-outline hover:bg-gray-100 hover:scale-95 hover:text-blue-500" href="#">
<ion-icon class="w-4 h-4 md hydrated" name="trending-up-outline" role="img" aria-label="trending up outline"></ion-icon>
<span class="ml-4">
Performance
</span>
</a>
</li>
</ul>
<p class="px-4 pt-4 text-xs font-semibold text-gray-400 uppercase">
Customization
</p>
<ul>
<li>
<div x-data="{ open: false }">
<button class="inline-flex items-center justify-between w-full px-4 py-2 mt-1 text-sm text-gray-500 transition duration-200 ease-in-out transform rounded-lg focus:shadow-outline hover:bg-gray-100 hover:scale-95 hover:text-blue-500 group" @click="open = ! open">
<span class="inline-flex items-center text-base font-light">
<ion-icon class="w-4 h-4 md hydrated" name="home-outline" role="img" aria-label="home outline"></ion-icon>
<span class="ml-4">
Home
</span>
</span>
<svg fill="currentColor" viewBox="0 0 20 20" :class="{'rotate-180': open, 'rotate-0': !open}" class="inline w-5 h-5 ml-auto transition-transform duration-200 transform group-hover:text-accent rotate-0">
<path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd"></path>
</svg>
</button>
<div class="p-2 pl-6 -px-px" x-show="open" @click.outside="open = false" style="display: none;">
<ul>
<li>
<a href="#" title="#" class="inline-flex items-center w-full p-2 pl-3 text-sm font-light text-gray-500 rounded-lg hover:text-blue-500 group hover:bg-gray-50">
<span class="inline-flex items-center w-full">
<ion-icon class="w-4 h-4 md hydrated" name="document-outline" role="img" aria-label="document outline"></ion-icon>
<span class="ml-4">
Guides
</span>
</span>
</a>
</li>
<li>
<a href="#" title="#" class="inline-flex items-center w-full p-2 pl-3 text-sm font-light text-gray-500 rounded-lg hover:text-blue-500 group hover:bg-gray-50">
<span class="inline-flex items-center w-full">
<ion-icon class="w-4 h-4 md hydrated" name="mail-outline" role="img" aria-label="mail outline"></ion-icon>
<span class="ml-4">
Email
</span>
</span>
</a>
</li>
</ul>
</div>
</div>
</li>
<li>
<div x-data="{ open: false }">
<button class="inline-flex items-center justify-between w-full px-4 py-2 mt-1 text-sm text-gray-500 transition duration-200 ease-in-out transform rounded-lg focus:shadow-outline hover:bg-gray-100 hover:scale-95 hover:text-blue-500 group" @click="open = ! open">
<span class="inline-flex items-center text-base font-light">
<ion-icon class="w-4 h-4 md hydrated" name="pie-chart-outline" role="img" aria-label="pie chart outline"></ion-icon>
<span class="ml-4">
Dashboard
</span>
</span>
<svg fill="currentColor" viewBox="0 0 20 20" :class="{'rotate-180': open, 'rotate-0': !open}" class="inline w-5 h-5 ml-auto transition-transform duration-200 transform group-hover:text-accent rotate-0">
<path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd"></path>
</svg>
</button>
<div class="p-2 pl-6 -px-px" x-show="open" @click.outside="open = false" style="display: none;">
<ul>
<li>
<a href="#" title="#" class="inline-flex items-center w-full p-2 pl-3 text-sm font-light text-gray-500 rounded-lg hover:text-blue-500 group hover:bg-gray-50">
<span class="inline-flex items-center w-full">
<ion-icon class="w-4 h-4 md hydrated" name="flower-outline" role="img" aria-label="flower outline"></ion-icon>
<span class="ml-4">
Overview
</span>
<span class="inline-flex ml-auto items-center rounded-full bg-blue-50 px-2.5 py-0.5 text-xs font-medium text-blue-500">
25
</span>
</span>
</a>
</li>
<li>
<a href="#" title="#" class="inline-flex items-center w-full p-2 pl-3 text-sm font-light text-gray-500 rounded-lg hover:text-blue-500 group hover:bg-gray-50">
<span class="inline-flex items-center w-full">
<ion-icon class="w-4 h-4 md hydrated" name="notifications-outline" role="img" aria-label="notifications outline"></ion-icon>
<span class="ml-4">
Notifications
</span>
</span>
</a>
</li>
<li>
<a href="#" title="#" class="inline-flex items-center w-full p-2 pl-3 text-sm font-light text-gray-500 rounded-lg hover:text-blue-500 group hover:bg-gray-50">
<span class="inline-flex items-center w-full">
<ion-icon class="w-4 h-4 md hydrated" name="analytics-outline" role="img" aria-label="analytics outline"></ion-icon>
<span class="ml-4">
Analytics
</span>
</span>
</a>
</li>
<li>
<a href="#" title="#" class="inline-flex items-center w-full p-2 pl-3 text-sm font-light text-gray-500 rounded-lg hover:text-blue-500 group hover:bg-gray-50">
<span class="inline-flex items-center w-full">
<ion-icon class="w-4 h-4 md hydrated" name="document-outline" role="img" aria-label="document outline"></ion-icon>
<span class="ml-4">
Saved reports
</span>
</span>
</a>
</li>
<li>
<a href="#" title="#" class="inline-flex items-center w-full p-2 pl-3 text-sm font-light text-gray-500 rounded-lg hover:text-blue-500 group hover:bg-gray-50">
<span class="inline-flex items-center w-full">
<ion-icon class="w-4 h-4 md hydrated" name="calendar-outline" role="img" aria-label="calendar outline"></ion-icon>
<span class="ml-4">
Scheduled reports
</span>
</span>
</a>
</li>
<li>
<a href="#" title="#" class="inline-flex items-center w-full p-2 pl-3 text-sm font-light text-gray-500 rounded-lg hover:text-blue-500 group hover:bg-gray-50">
<span class="inline-flex items-center w-full">
<ion-icon class="w-4 h-4 md hydrated" name="bookmark-outline" role="img" aria-label="bookmark outline"></ion-icon>
<span class="ml-4">
Saved reports
</span>
</span>
</a>
</li>
<li>
<a href="#" title="#" class="inline-flex items-center w-full p-2 pl-3 text-sm font-light text-gray-500 rounded-lg hover:text-blue-500 group hover:bg-gray-50">
<span class="inline-flex items-center w-full">
<ion-icon class="w-4 h-4 md hydrated" name="settings-outline" role="img" aria-label="settings outline"></ion-icon>
<span class="ml-4">
Notifications
</span>
</span>
</a>
</li>
</ul>
</div>
</div>
</li>
<li>
<div x-data="{ open: false }">
<button class="inline-flex items-center justify-between w-full px-4 py-2 mt-1 text-sm text-gray-500 transition duration-200 ease-in-out transform rounded-lg focus:shadow-outline hover:bg-gray-100 hover:scale-95 hover:text-blue-500 group" @click="open = ! open">
<span class="inline-flex items-center text-base font-light">
<ion-icon class="w-4 h-4 md hydrated" name="albums-outline" role="img" aria-label="albums outline"></ion-icon>
<span class="ml-4">
Projects
</span>
</span>
<svg fill="currentColor" viewBox="0 0 20 20" :class="{'rotate-180': open, 'rotate-0': !open}" class="inline w-5 h-5 ml-auto transition-transform duration-200 transform group-hover:text-accent rotate-0">
<path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd"></path>
</svg>
</button>
<div class="p-2 pl-6 -px-px" x-show="open" @click.outside="open = false" style="display: none;">
<ul>
<li>
<a href="#" title="#" class="inline-flex items-center w-full p-2 pl-3 text-sm font-light text-gray-500 rounded-lg hover:text-blue-500 group hover:bg-gray-50">
<span class="inline-flex items-center w-full">
<ion-icon class="w-4 h-4 md hydrated" name="flower-outline" role="img" aria-label="flower outline"></ion-icon>
<span class="ml-4">
Overview
</span>
<span class="inline-flex ml-auto items-center rounded-full bg-blue-50 px-2.5 py-0.5 text-xs font-medium text-blue-500">
25
</span>
</span>
</a>
</li>
<li>
<a href="#" title="#" class="inline-flex items-center w-full p-2 pl-3 text-sm font-light text-gray-500 rounded-lg hover:text-blue-500 group hover:bg-gray-50">
<span class="inline-flex items-center w-full">
<ion-icon class="w-4 h-4 md hydrated" name="notifications-outline" role="img" aria-label="notifications outline"></ion-icon>
<span class="ml-4">
Notifications
</span>
</span>
</a>
</li>
<li>
<a href="#" title="#" class="inline-flex items-center w-full p-2 pl-3 text-sm font-light text-gray-500 rounded-lg hover:text-blue-500 group hover:bg-gray-50">
<span class="inline-flex items-center w-full">
<ion-icon class="w-4 h-4 md hydrated" name="analytics-outline" role="img" aria-label="analytics outline"></ion-icon>
<span class="ml-4">
Analytics
</span>
</span>
</a>
</li>
<li>
<a href="#" title="#" class="inline-flex items-center w-full p-2 pl-3 text-sm font-light text-gray-500 rounded-lg hover:text-blue-500 group hover:bg-gray-50">
<span class="inline-flex items-center w-full">
<ion-icon class="w-4 h-4 md hydrated" name="document-outline" role="img" aria-label="document outline"></ion-icon>
<span class="ml-4">
Saved reports
</span>
</span>
</a>
</li>
<li>
<a href="#" title="#" class="inline-flex items-center w-full p-2 pl-3 text-sm font-light text-gray-500 rounded-lg hover:text-blue-500 group hover:bg-gray-50">
<span class="inline-flex items-center w-full">
<ion-icon class="w-4 h-4 md hydrated" name="calendar-outline" role="img" aria-label="calendar outline"></ion-icon>
<span class="ml-4">
Scheduled reports
</span>
</span>
</a>
</li>
<li>
<a href="#" title="#" class="inline-flex items-center w-full p-2 pl-3 text-sm font-light text-gray-500 rounded-lg hover:text-blue-500 group hover:bg-gray-50">
<span class="inline-flex items-center w-full">
<ion-icon class="w-4 h-4 md hydrated" name="bookmark-outline" role="img" aria-label="bookmark outline"></ion-icon>
<span class="ml-4">
Saved reports
</span>
</span>
</a>
</li>
<li>
<a href="#" title="#" class="inline-flex items-center w-full p-2 pl-3 text-sm font-light text-gray-500 rounded-lg hover:text-blue-500 group hover:bg-gray-50">
<span class="inline-flex items-center w-full">
<ion-icon class="w-4 h-4 md hydrated" name="settings-outline" role="img" aria-label="settings outline"></ion-icon>
<span class="ml-4">
Notifications
</span>
</span>
</a>
</li>
</ul>
</div>
</div>
</li>
<li>
<div x-data="{ open: false }">
<button class="inline-flex items-center justify-between w-full px-4 py-2 mt-1 text-sm text-gray-500 transition duration-200 ease-in-out transform rounded-lg focus:shadow-outline hover:bg-gray-100 hover:scale-95 hover:text-blue-500 group" @click="open = ! open">
<span class="inline-flex items-center text-base font-light">
<ion-icon class="w-4 h-4 md hydrated" name="add-outline" role="img" aria-label="add outline"></ion-icon>
<span class="ml-4">
Tasks
</span>
</span>
<svg fill="currentColor" viewBox="0 0 20 20" :class="{'rotate-180': open, 'rotate-0': !open}" class="inline w-5 h-5 ml-auto transition-transform duration-200 transform group-hover:text-accent rotate-0">
<path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd"></path>
</svg>
</button>
<div class="p-2 pl-6 -px-px" x-show="open" @click.outside="open = false" style="display: none;">
<ul>
<li>
<a href="#" title="#" class="inline-flex items-center w-full p-2 pl-3 text-sm font-light text-gray-500 rounded-lg hover:text-blue-500 group hover:bg-gray-50">
<span class="inline-flex items-center w-full">
<ion-icon class="w-4 h-4 md hydrated" name="flower-outline" role="img" aria-label="flower outline"></ion-icon>
<span class="ml-4">
Overview
</span>
<span class="inline-flex ml-auto items-center rounded-full bg-blue-50 px-2.5 py-0.5 text-xs font-medium text-blue-500">
25
</span>
</span>
</a>
</li>
<li>
<a href="#" title="#" class="inline-flex items-center w-full p-2 pl-3 text-sm font-light text-gray-500 rounded-lg hover:text-blue-500 group hover:bg-gray-50">
<span class="inline-flex items-center w-full">
<ion-icon class="w-4 h-4 md hydrated" name="notifications-outline" role="img" aria-label="notifications outline"></ion-icon>
<span class="ml-4">
Notifications
</span>
</span>
</a>
</li>
<li>
<a href="#" title="#" class="inline-flex items-center w-full p-2 pl-3 text-sm font-light text-gray-500 rounded-lg hover:text-blue-500 group hover:bg-gray-50">
<span class="inline-flex items-center w-full">
<ion-icon class="w-4 h-4 md hydrated" name="analytics-outline" role="img" aria-label="analytics outline"></ion-icon>
<span class="ml-4">
Analytics
</span>
</span>
</a>
</li>
<li>
<a href="#" title="#" class="inline-flex items-center w-full p-2 pl-3 text-sm font-light text-gray-500 rounded-lg hover:text-blue-500 group hover:bg-gray-50">
<span class="inline-flex items-center w-full">
<ion-icon class="w-4 h-4 md hydrated" name="document-outline" role="img" aria-label="document outline"></ion-icon>
<span class="ml-4">
Saved reports
</span>
</span>
</a>
</li>
<li>
<a href="#" title="#" class="inline-flex items-center w-full p-2 pl-3 text-sm font-light text-gray-500 rounded-lg hover:text-blue-500 group hover:bg-gray-50">
<span class="inline-flex items-center w-full">
<ion-icon class="w-4 h-4 md hydrated" name="calendar-outline" role="img" aria-label="calendar outline"></ion-icon>
<span class="ml-4">
Scheduled reports
</span>
</span>
</a>
</li>
<li>
<a href="#" title="#" class="inline-flex items-center w-full p-2 pl-3 text-sm font-light text-gray-500 rounded-lg hover:text-blue-500 group hover:bg-gray-50">
<span class="inline-flex items-center w-full">
<ion-icon class="w-4 h-4 md hydrated" name="bookmark-outline" role="img" aria-label="bookmark outline"></ion-icon>
<span class="ml-4">
Saved reports
</span>
</span>
</a>
</li>
<li>
<a href="#" title="#" class="inline-flex items-center w-full p-2 pl-3 text-sm font-light text-gray-500 rounded-lg hover:text-blue-500 group hover:bg-gray-50">
<span class="inline-flex items-center w-full">
<ion-icon class="w-4 h-4 md hydrated" name="settings-outline" role="img" aria-label="settings outline"></ion-icon>
<span class="ml-4">
Notifications
</span>
</span>
</a>
</li>
</ul>
</div>
</div>
</li>
<li>
<div x-data="{ open: false }">
<button class="inline-flex items-center justify-between w-full px-4 py-2 mt-1 text-sm text-gray-500 transition duration-200 ease-in-out transform rounded-lg focus:shadow-outline hover:bg-gray-100 hover:scale-95 hover:text-blue-500 group" @click="open = ! open">
<span class="inline-flex items-center text-base font-light">
<ion-icon class="w-4 h-4 md hydrated" name="newspaper-outline" role="img" aria-label="newspaper outline"></ion-icon>
<span class="ml-4">
Reporting
</span>
</span>
<svg fill="currentColor" viewBox="0 0 20 20" :class="{'rotate-180': open, 'rotate-0': !open}" class="inline w-5 h-5 ml-auto transition-transform duration-200 transform group-hover:text-accent rotate-0">
<path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd"></path>
</svg>
</button>
<div class="p-2 pl-6 -px-px" x-show="open" @click.outside="open = false" style="display: none;">
<ul>
<li>
<a href="#" title="#" class="inline-flex items-center w-full p-2 pl-3 text-sm font-light text-gray-500 rounded-lg hover:text-blue-500 group hover:bg-gray-50">
<span class="inline-flex items-center w-full">
<ion-icon class="w-4 h-4 md hydrated" name="flower-outline" role="img" aria-label="flower outline"></ion-icon>
<span class="ml-4">
Overview
</span>
<span class="inline-flex ml-auto items-center rounded-full bg-blue-50 px-2.5 py-0.5 text-xs font-medium text-blue-500">
25
</span>
</span>
</a>
</li>
<li>
<a href="#" title="#" class="inline-flex items-center w-full p-2 pl-3 text-sm font-light text-gray-500 rounded-lg hover:text-blue-500 group hover:bg-gray-50">
<span class="inline-flex items-center w-full">
<ion-icon class="w-4 h-4 md hydrated" name="notifications-outline" role="img" aria-label="notifications outline"></ion-icon>
<span class="ml-4">
Notifications
</span>
</span>
</a>
</li>
<li>
<a href="#" title="#" class="inline-flex items-center w-full p-2 pl-3 text-sm font-light text-gray-500 rounded-lg hover:text-blue-500 group hover:bg-gray-50">
<span class="inline-flex items-center w-full">
<ion-icon class="w-4 h-4 md hydrated" name="analytics-outline" role="img" aria-label="analytics outline"></ion-icon>
<span class="ml-4">
Analytics
</span>
</span>
</a>
</li>
<li>
<a href="#" title="#" class="inline-flex items-center w-full p-2 pl-3 text-sm font-light text-gray-500 rounded-lg hover:text-blue-500 group hover:bg-gray-50">
<span class="inline-flex items-center w-full">
<ion-icon class="w-4 h-4 md hydrated" name="document-outline" role="img" aria-label="document outline"></ion-icon>
<span class="ml-4">
Saved reports
</span>
</span>
</a>
</li>
<li>
<a href="#" title="#" class="inline-flex items-center w-full p-2 pl-3 text-sm font-light text-gray-500 rounded-lg hover:text-blue-500 group hover:bg-gray-50">
<span class="inline-flex items-center w-full">
<ion-icon class="w-4 h-4 md hydrated" name="calendar-outline" role="img" aria-label="calendar outline"></ion-icon>
<span class="ml-4">
Scheduled reports
</span>
</span>
</a>
</li>
<li>
<a href="#" title="#" class="inline-flex items-center w-full p-2 pl-3 text-sm font-light text-gray-500 rounded-lg hover:text-blue-500 group hover:bg-gray-50">
<span class="inline-flex items-center w-full">
<ion-icon class="w-4 h-4 md hydrated" name="bookmark-outline" role="img" aria-label="bookmark outline"></ion-icon>
<span class="ml-4">
Saved reports
</span>
</span>
</a>
</li>
<li>
<a href="#" title="#" class="inline-flex items-center w-full p-2 pl-3 text-sm font-light text-gray-500 rounded-lg hover:text-blue-500 group hover:bg-gray-50">
<span class="inline-flex items-center w-full">
<ion-icon class="w-4 h-4 md hydrated" name="settings-outline" role="img" aria-label="settings outline"></ion-icon>
<span class="ml-4">
Notifications
</span>
</span>
</a>
</li>
</ul>
</div>
</div>
</li>
<li>
<div x-data="{ open: false }">
<button class="inline-flex items-center justify-between w-full px-4 py-2 mt-1 text-sm text-gray-500 transition duration-200 ease-in-out transform rounded-lg focus:shadow-outline hover:bg-gray-100 hover:scale-95 hover:text-blue-500 group" @click="open = ! open">
<span class="inline-flex items-center text-base font-light">
<ion-icon class="w-4 h-4 md hydrated" name="people-outline" role="img" aria-label="people outline"></ion-icon>
<span class="ml-4">
Users
</span>
</span>
<svg fill="currentColor" viewBox="0 0 20 20" :class="{'rotate-180': open, 'rotate-0': !open}" class="inline w-5 h-5 ml-auto transition-transform duration-200 transform group-hover:text-accent rotate-0">
<path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd"></path>
</svg>
</button>
<div class="p-2 pl-6 -px-px" x-show="open" @click.outside="open = false" style="display: none;">
<ul>
<li>
<a href="#" title="#" class="inline-flex items-center w-full p-2 pl-3 text-sm font-light text-gray-500 rounded-lg hover:text-blue-500 group hover:bg-gray-50">
<span class="inline-flex items-center w-full">
<ion-icon class="w-4 h-4 md hydrated" name="flower-outline" role="img" aria-label="flower outline"></ion-icon>
<span class="ml-4">
Overview
</span>
<span class="inline-flex ml-auto items-center rounded-full bg-blue-50 px-2.5 py-0.5 text-xs font-medium text-blue-500">
25
</span>
</span>
</a>
</li>
<li>
<a href="#" title="#" class="inline-flex items-center w-full p-2 pl-3 text-sm font-light text-gray-500 rounded-lg hover:text-blue-500 group hover:bg-gray-50">
<span class="inline-flex items-center w-full">
<ion-icon class="w-4 h-4 md hydrated" name="notifications-outline" role="img" aria-label="notifications outline"></ion-icon>
<span class="ml-4">
Notifications
</span>
</span>
</a>
</li>
<li>
<a href="#" title="#" class="inline-flex items-center w-full p-2 pl-3 text-sm font-light text-gray-500 rounded-lg hover:text-blue-500 group hover:bg-gray-50">
<span class="inline-flex items-center w-full">
<ion-icon class="w-4 h-4 md hydrated" name="analytics-outline" role="img" aria-label="analytics outline"></ion-icon>
<span class="ml-4">
Analytics
</span>
</span>
</a>
</li>
<li>
<a href="#" title="#" class="inline-flex items-center w-full p-2 pl-3 text-sm font-light text-gray-500 rounded-lg hover:text-blue-500 group hover:bg-gray-50">
<span class="inline-flex items-center w-full">
<ion-icon class="w-4 h-4 md hydrated" name="document-outline" role="img" aria-label="document outline"></ion-icon>
<span class="ml-4">
Saved reports
</span>
</span>
</a>
</li>
<li>
<a href="#" title="#" class="inline-flex items-center w-full p-2 pl-3 text-sm font-light text-gray-500 rounded-lg hover:text-blue-500 group hover:bg-gray-50">
<span class="inline-flex items-center w-full">
<ion-icon class="w-4 h-4 md hydrated" name="calendar-outline" role="img" aria-label="calendar outline"></ion-icon>
<span class="ml-4">
Scheduled reports
</span>
</span>
</a>
</li>
<li>
<a href="#" title="#" class="inline-flex items-center w-full p-2 pl-3 text-sm font-light text-gray-500 rounded-lg hover:text-blue-500 group hover:bg-gray-50">
<span class="inline-flex items-center w-full">
<ion-icon class="w-4 h-4 md hydrated" name="bookmark-outline" role="img" aria-label="bookmark outline"></ion-icon>
<span class="ml-4">
Saved reports
</span>
</span>
</a>
</li>
<li>
<a href="#" title="#" class="inline-flex items-center w-full p-2 pl-3 text-sm font-light text-gray-500 rounded-lg hover:text-blue-500 group hover:bg-gray-50">
<span class="inline-flex items-center w-full">
<ion-icon class="w-4 h-4 md hydrated" name="settings-outline" role="img" aria-label="settings outline"></ion-icon>
<span class="ml-4">
Notifications
</span>
</span>
</a>
</li>
</ul>
</div>
</div>
</li>
</ul>
</nav>
</div>
<div class="flex flex-shrink-0 p-4 px-4 bg-gray-50">
<div @click.away="open = false" class="relative inline-flex items-center w-full" x-data="{ open: false }">
<button @click="open = !open" class="inline-flex items-center justify-between w-full px-4 py-3 text-lg font-medium text-center text-white transition duration-500 ease-in-out transform rounded-xl hover:bg-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
<span>
<span class="flex-shrink-0 block group">
<div class="flex items-center">
<div>
<img class="inline-block object-cover rounded-full h-9 w-9" src="https://images.unsplash.com/flagged/photo-1570612861542-284f4c12e75f?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2070&q=80" alt="">
</div>
<div class="ml-3 text-left">
<p class="text-sm font-medium text-gray-500 group-hover:text-blue-500">
Mike Vega
</p>
<p class="text-xs font-medium text-gray-500 group-hover:text-blue-500">
Pro user
</p>
</div>
</div>
</span>
</span>
<svg :class="{'rotate-180': open, 'rotate-0': !open}" xmlns="http://www.w3.org/2000/svg" class="inline w-5 h-5 ml-4 text-black transition-transform duration-200 transform rotate-0" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd" d="M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z" clip-rule="evenodd"></path>
</svg>
</button>
<div x-show="open" x-transition:enter="transition ease-out duration-100" x-transition:enter-start="transform opacity-0 scale-95" x-transition:enter-end="transform opacity-100 scale-100" x-transition:leave="transition ease-in duration-75" x-transition:leave-start="transform opacity-100 scale-100" x-transition:leave-end="transform opacity-0 scale-95" class="absolute bottom-0 z-50 w-full mx-auto mt-2 origin-bottom-right bg-white rounded-xl" style="display: none">
<div class="px-2 py-2 bg-white rounded-lg shadow-lg ring-1 ring-black ring-opacity-5">
<ul>
<li>
<a class="inline-flex items-center w-full px-4 py-2 mt-1 text-sm text-gray-500 transition duration-200 ease-in-out transform rounded-lg focus:shadow-outline hover:bg-gray-100 hover:scale-95 hover:text-blue-500" href="#">
<ion-icon class="w-4 h-4 md hydrated" name="body-outline" role="img" aria-label="body outline"></ion-icon>
<span class="ml-4">
Account
</span>
</a>
</li>
<li>
<a class="inline-flex items-center w-full px-4 py-2 mt-1 text-sm text-gray-500 transition duration-200 ease-in-out transform rounded-lg focus:shadow-outline hover:bg-gray-100 hover:scale-95 hover:text-blue-500" href="#">
<ion-icon class="w-4 h-4 md hydrated" name="person-circle-outline" role="img" aria-label="person circle outline"></ion-icon>
<span class="ml-4">
Profile
</span>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="flex flex-col flex-1 w-0 overflow-hidden">
<main class="relative flex-1 overflow-y-auto focus:outline-none">
<div class="py-6">
<div class="px-4 mx-auto 2xl:max-w-7xl sm:px-6 md:px-8">
<!-- === Remove and replace with your own content... === -->
<div class="py-4">
<div class="h-screen border border-gray-200 border-dashed rounded-lg"></div>
</div>
<!-- === End === -->
</div>
</div>
</main>
</div>
</div>
html {
font-family: 'Inter', sans-serif !important;
}
Also see: Tab Triggers