Tailwind CSS Popovers - Notus JS
Pop over component that appears to the left/top/right/bottom of a
button on user click. The dynamic part of them is made using
Javascript and the styles are done using Tailwind CSS.
For this component to properly work, you will need to install
popper.js into your project. Please run the following:
npm i -E @popperjs/[email protected]
Or, if you are not used to workin with terminal and HTML, please add
the following script:
<script src="https://unpkg.com/@popperjs/core@2"
charset="utf-8"></script>
Tailwind Popover Examples
Left
left blueGray
blueGray popover title
And here's some amazing content. It's very engaging.
Right?
left red
red popover title
And here's some amazing content. It's very engaging.
Right?
left orange
orange popover title
And here's some amazing content. It's very engaging.
Right?
left amber
amber popover title
And here's some amazing content. It's very engaging.
Right?
left emerald
emerald popover title
And here's some amazing content. It's very engaging.
Right?
left teal
teal popover title
And here's some amazing content. It's very engaging.
Right?
left lightBlue
lightBlue popover title
And here's some amazing content. It's very engaging.
Right?
left indigo
indigo popover title
And here's some amazing content. It's very engaging.
Right?
left purple
purple popover title
And here's some amazing content. It's very engaging.
Right?
left pink
pink popover title
And here's some amazing content. It's very engaging.
Right?
<div class= "flex flex-wrap" >
<div class= "w-full text-center" >
<button class= "bg-blueGray-500 text-white active:bg-blueGray-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150" type= "button" onclick= "openPopover(event,'left','popover-id-left-blueGray')" >
left blueGray
</button>
<div class= "hidden bg-blueGray-600 border-0 mr-3 block z-50 font-normal leading-normal text-sm max-w-xs text-left no-underline break-words rounded-lg" id= "popover-id-left-blueGray" >
<div>
<div class= "bg-blueGray-600 text-white opacity-75 font-semibold p-3 mb-0 border-b border-solid border-blueGray-100 uppercase rounded-t-lg" >
blueGray popover title
</div>
<div class= "text-white p-3" >
And here's some amazing content. It's very engaging. Right?
</div>
</div>
</div>
</div>
</div>
<script src= "https://unpkg.com/@popperjs/core@2" charset= "utf-8" ></script>
<script>
function openPopover ( event , placement , popoverID ){
let element = event . target ;
while ( element . nodeName !== " BUTTON " ){
element = element . parentNode ;
}
Popper . createPopper ( element , document . getElementById ( popoverID ), {
placement : placement
});
document . getElementById ( popoverID ). classList . toggle ( " hidden " );
}
</script>
<div class= "flex flex-wrap" >
<div class= "w-full text-center" >
<button class= "bg-red-500 text-white active:bg-red-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150" type= "button" onclick= "openPopover(event,'left','popover-id-left-red')" >
left red
</button>
<div class= "hidden bg-red-600 border-0 mr-3 block z-50 font-normal leading-normal text-sm max-w-xs text-left no-underline break-words rounded-lg" id= "popover-id-left-red" >
<div>
<div class= "bg-red-600 text-white opacity-75 font-semibold p-3 mb-0 border-b border-solid border-blueGray-100 uppercase rounded-t-lg" >
red popover title
</div>
<div class= "text-white p-3" >
And here's some amazing content. It's very engaging. Right?
</div>
</div>
</div>
</div>
</div>
<script src= "https://unpkg.com/@popperjs/core@2" charset= "utf-8" ></script>
<script>
function openPopover ( event , placement , popoverID ){
let element = event . target ;
while ( element . nodeName !== " BUTTON " ){
element = element . parentNode ;
}
Popper . createPopper ( element , document . getElementById ( popoverID ), {
placement : placement
});
document . getElementById ( popoverID ). classList . toggle ( " hidden " );
}
</script>
<div class= "flex flex-wrap" >
<div class= "w-full text-center" >
<button class= "bg-orange-500 text-white active:bg-orange-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150" type= "button" onclick= "openPopover(event,'left','popover-id-left-orange')" >
left orange
</button>
<div class= "hidden bg-orange-600 border-0 mr-3 block z-50 font-normal leading-normal text-sm max-w-xs text-left no-underline break-words rounded-lg" id= "popover-id-left-orange" >
<div>
<div class= "bg-orange-600 text-white opacity-75 font-semibold p-3 mb-0 border-b border-solid border-blueGray-100 uppercase rounded-t-lg" >
orange popover title
</div>
<div class= "text-white p-3" >
And here's some amazing content. It's very engaging. Right?
</div>
</div>
</div>
</div>
</div>
<script src= "https://unpkg.com/@popperjs/core@2" charset= "utf-8" ></script>
<script>
function openPopover ( event , placement , popoverID ){
let element = event . target ;
while ( element . nodeName !== " BUTTON " ){
element = element . parentNode ;
}
Popper . createPopper ( element , document . getElementById ( popoverID ), {
placement : placement
});
document . getElementById ( popoverID ). classList . toggle ( " hidden " );
}
</script>
<div class= "flex flex-wrap" >
<div class= "w-full text-center" >
<button class= "bg-amber-500 text-white active:bg-amber-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150" type= "button" onclick= "openPopover(event,'left','popover-id-left-amber')" >
left amber
</button>
<div class= "hidden bg-amber-600 border-0 mr-3 block z-50 font-normal leading-normal text-sm max-w-xs text-left no-underline break-words rounded-lg" id= "popover-id-left-amber" >
<div>
<div class= "bg-amber-600 text-white opacity-75 font-semibold p-3 mb-0 border-b border-solid border-blueGray-100 uppercase rounded-t-lg" >
amber popover title
</div>
<div class= "text-white p-3" >
And here's some amazing content. It's very engaging. Right?
</div>
</div>
</div>
</div>
</div>
<script src= "https://unpkg.com/@popperjs/core@2" charset= "utf-8" ></script>
<script>
function openPopover ( event , placement , popoverID ){
let element = event . target ;
while ( element . nodeName !== " BUTTON " ){
element = element . parentNode ;
}
Popper . createPopper ( element , document . getElementById ( popoverID ), {
placement : placement
});
document . getElementById ( popoverID ). classList . toggle ( " hidden " );
}
</script>
<div class= "flex flex-wrap" >
<div class= "w-full text-center" >
<button class= "bg-emerald-500 text-white active:bg-emerald-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150" type= "button" onclick= "openPopover(event,'left','popover-id-left-emerald')" >
left emerald
</button>
<div class= "hidden bg-emerald-600 border-0 mr-3 block z-50 font-normal leading-normal text-sm max-w-xs text-left no-underline break-words rounded-lg" id= "popover-id-left-emerald" >
<div>
<div class= "bg-emerald-600 text-white opacity-75 font-semibold p-3 mb-0 border-b border-solid border-blueGray-100 uppercase rounded-t-lg" >
emerald popover title
</div>
<div class= "text-white p-3" >
And here's some amazing content. It's very engaging. Right?
</div>
</div>
</div>
</div>
</div>
<script src= "https://unpkg.com/@popperjs/core@2" charset= "utf-8" ></script>
<script>
function openPopover ( event , placement , popoverID ){
let element = event . target ;
while ( element . nodeName !== " BUTTON " ){
element = element . parentNode ;
}
Popper . createPopper ( element , document . getElementById ( popoverID ), {
placement : placement
});
document . getElementById ( popoverID ). classList . toggle ( " hidden " );
}
</script>
<div class= "flex flex-wrap" >
<div class= "w-full text-center" >
<button class= "bg-teal-500 text-white active:bg-teal-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150" type= "button" onclick= "openPopover(event,'left','popover-id-left-teal')" >
left teal
</button>
<div class= "hidden bg-teal-600 border-0 mr-3 block z-50 font-normal leading-normal text-sm max-w-xs text-left no-underline break-words rounded-lg" id= "popover-id-left-teal" >
<div>
<div class= "bg-teal-600 text-white opacity-75 font-semibold p-3 mb-0 border-b border-solid border-blueGray-100 uppercase rounded-t-lg" >
teal popover title
</div>
<div class= "text-white p-3" >
And here's some amazing content. It's very engaging. Right?
</div>
</div>
</div>
</div>
</div>
<script src= "https://unpkg.com/@popperjs/core@2" charset= "utf-8" ></script>
<script>
function openPopover ( event , placement , popoverID ){
let element = event . target ;
while ( element . nodeName !== " BUTTON " ){
element = element . parentNode ;
}
Popper . createPopper ( element , document . getElementById ( popoverID ), {
placement : placement
});
document . getElementById ( popoverID ). classList . toggle ( " hidden " );
}
</script>
<div class= "flex flex-wrap" >
<div class= "w-full text-center" >
<button class= "bg-lightBlue-500 text-white active:bg-lightBlue-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150" type= "button" onclick= "openPopover(event,'left','popover-id-left-lightBlue')" >
left lightBlue
</button>
<div class= "hidden bg-lightBlue-600 border-0 mr-3 block z-50 font-normal leading-normal text-sm max-w-xs text-left no-underline break-words rounded-lg" id= "popover-id-left-lightBlue" >
<div>
<div class= "bg-lightBlue-600 text-white opacity-75 font-semibold p-3 mb-0 border-b border-solid border-blueGray-100 uppercase rounded-t-lg" >
lightBlue popover title
</div>
<div class= "text-white p-3" >
And here's some amazing content. It's very engaging. Right?
</div>
</div>
</div>
</div>
</div>
<script src= "https://unpkg.com/@popperjs/core@2" charset= "utf-8" ></script>
<script>
function openPopover ( event , placement , popoverID ){
let element = event . target ;
while ( element . nodeName !== " BUTTON " ){
element = element . parentNode ;
}
Popper . createPopper ( element , document . getElementById ( popoverID ), {
placement : placement
});
document . getElementById ( popoverID ). classList . toggle ( " hidden " );
}
</script>
<div class= "flex flex-wrap" >
<div class= "w-full text-center" >
<button class= "bg-indigo-500 text-white active:bg-indigo-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150" type= "button" onclick= "openPopover(event,'left','popover-id-left-indigo')" >
left indigo
</button>
<div class= "hidden bg-indigo-600 border-0 mr-3 block z-50 font-normal leading-normal text-sm max-w-xs text-left no-underline break-words rounded-lg" id= "popover-id-left-indigo" >
<div>
<div class= "bg-indigo-600 text-white opacity-75 font-semibold p-3 mb-0 border-b border-solid border-blueGray-100 uppercase rounded-t-lg" >
indigo popover title
</div>
<div class= "text-white p-3" >
And here's some amazing content. It's very engaging. Right?
</div>
</div>
</div>
</div>
</div>
<script src= "https://unpkg.com/@popperjs/core@2" charset= "utf-8" ></script>
<script>
function openPopover ( event , placement , popoverID ){
let element = event . target ;
while ( element . nodeName !== " BUTTON " ){
element = element . parentNode ;
}
Popper . createPopper ( element , document . getElementById ( popoverID ), {
placement : placement
});
document . getElementById ( popoverID ). classList . toggle ( " hidden " );
}
</script>
<div class= "flex flex-wrap" >
<div class= "w-full text-center" >
<button class= "bg-purple-500 text-white active:bg-purple-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150" type= "button" onclick= "openPopover(event,'left','popover-id-left-purple')" >
left purple
</button>
<div class= "hidden bg-purple-600 border-0 mr-3 block z-50 font-normal leading-normal text-sm max-w-xs text-left no-underline break-words rounded-lg" id= "popover-id-left-purple" >
<div>
<div class= "bg-purple-600 text-white opacity-75 font-semibold p-3 mb-0 border-b border-solid border-blueGray-100 uppercase rounded-t-lg" >
purple popover title
</div>
<div class= "text-white p-3" >
And here's some amazing content. It's very engaging. Right?
</div>
</div>
</div>
</div>
</div>
<script src= "https://unpkg.com/@popperjs/core@2" charset= "utf-8" ></script>
<script>
function openPopover ( event , placement , popoverID ){
let element = event . target ;
while ( element . nodeName !== " BUTTON " ){
element = element . parentNode ;
}
Popper . createPopper ( element , document . getElementById ( popoverID ), {
placement : placement
});
document . getElementById ( popoverID ). classList . toggle ( " hidden " );
}
</script>
<div class= "flex flex-wrap" >
<div class= "w-full text-center" >
<button class= "bg-pink-500 text-white active:bg-pink-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150" type= "button" onclick= "openPopover(event,'left','popover-id-left-pink')" >
left pink
</button>
<div class= "hidden bg-pink-600 border-0 mr-3 block z-50 font-normal leading-normal text-sm max-w-xs text-left no-underline break-words rounded-lg" id= "popover-id-left-pink" >
<div>
<div class= "bg-pink-600 text-white opacity-75 font-semibold p-3 mb-0 border-b border-solid border-blueGray-100 uppercase rounded-t-lg" >
pink popover title
</div>
<div class= "text-white p-3" >
And here's some amazing content. It's very engaging. Right?
</div>
</div>
</div>
</div>
</div>
<script src= "https://unpkg.com/@popperjs/core@2" charset= "utf-8" ></script>
<script>
function openPopover ( event , placement , popoverID ){
let element = event . target ;
while ( element . nodeName !== " BUTTON " ){
element = element . parentNode ;
}
Popper . createPopper ( element , document . getElementById ( popoverID ), {
placement : placement
});
document . getElementById ( popoverID ). classList . toggle ( " hidden " );
}
</script>
Top
top blueGray
blueGray popover title
And here's some amazing content. It's very engaging.
Right?
top red
red popover title
And here's some amazing content. It's very engaging.
Right?
top orange
orange popover title
And here's some amazing content. It's very engaging.
Right?
top amber
amber popover title
And here's some amazing content. It's very engaging.
Right?
top emerald
emerald popover title
And here's some amazing content. It's very engaging.
Right?
top teal
teal popover title
And here's some amazing content. It's very engaging.
Right?
top lightBlue
lightBlue popover title
And here's some amazing content. It's very engaging.
Right?
top indigo
indigo popover title
And here's some amazing content. It's very engaging.
Right?
top purple
purple popover title
And here's some amazing content. It's very engaging.
Right?
top pink
pink popover title
And here's some amazing content. It's very engaging.
Right?
<div class= "flex flex-wrap" >
<div class= "w-full text-center" >
<button class= "bg-blueGray-500 text-white active:bg-blueGray-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150" type= "button" onclick= "openPopover(event,'top','popover-id-top-blueGray')" >
top blueGray
</button>
<div class= "hidden bg-blueGray-600 border-0 mr-3 block z-50 font-normal leading-normal text-sm max-w-xs text-left no-underline break-words rounded-lg" id= "popover-id-top-blueGray" >
<div>
<div class= "bg-blueGray-600 text-white opacity-75 font-semibold p-3 mb-0 border-b border-solid border-blueGray-100 uppercase rounded-t-lg" >
blueGray popover title
</div>
<div class= "text-white p-3" >
And here's some amazing content. It's very engaging. Right?
</div>
</div>
</div>
</div>
</div>
<script src= "https://unpkg.com/@popperjs/core@2" charset= "utf-8" ></script>
<script>
function openPopover ( event , placement , popoverID ){
let element = event . target ;
while ( element . nodeName !== " BUTTON " ){
element = element . parentNode ;
}
Popper . createPopper ( element , document . getElementById ( popoverID ), {
placement : placement
});
document . getElementById ( popoverID ). classList . toggle ( " hidden " );
}
</script>
<div class= "flex flex-wrap" >
<div class= "w-full text-center" >
<button class= "bg-red-500 text-white active:bg-red-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150" type= "button" onclick= "openPopover(event,'top','popover-id-top-red')" >
top red
</button>
<div class= "hidden bg-red-600 border-0 mr-3 block z-50 font-normal leading-normal text-sm max-w-xs text-left no-underline break-words rounded-lg" id= "popover-id-top-red" >
<div>
<div class= "bg-red-600 text-white opacity-75 font-semibold p-3 mb-0 border-b border-solid border-blueGray-100 uppercase rounded-t-lg" >
red popover title
</div>
<div class= "text-white p-3" >
And here's some amazing content. It's very engaging. Right?
</div>
</div>
</div>
</div>
</div>
<script src= "https://unpkg.com/@popperjs/core@2" charset= "utf-8" ></script>
<script>
function openPopover ( event , placement , popoverID ){
let element = event . target ;
while ( element . nodeName !== " BUTTON " ){
element = element . parentNode ;
}
Popper . createPopper ( element , document . getElementById ( popoverID ), {
placement : placement
});
document . getElementById ( popoverID ). classList . toggle ( " hidden " );
}
</script>
<div class= "flex flex-wrap" >
<div class= "w-full text-center" >
<button class= "bg-orange-500 text-white active:bg-orange-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150" type= "button" onclick= "openPopover(event,'top','popover-id-top-orange')" >
top orange
</button>
<div class= "hidden bg-orange-600 border-0 mr-3 block z-50 font-normal leading-normal text-sm max-w-xs text-left no-underline break-words rounded-lg" id= "popover-id-top-orange" >
<div>
<div class= "bg-orange-600 text-white opacity-75 font-semibold p-3 mb-0 border-b border-solid border-blueGray-100 uppercase rounded-t-lg" >
orange popover title
</div>
<div class= "text-white p-3" >
And here's some amazing content. It's very engaging. Right?
</div>
</div>
</div>
</div>
</div>
<script src= "https://unpkg.com/@popperjs/core@2" charset= "utf-8" ></script>
<script>
function openPopover ( event , placement , popoverID ){
let element = event . target ;
while ( element . nodeName !== " BUTTON " ){
element = element . parentNode ;
}
Popper . createPopper ( element , document . getElementById ( popoverID ), {
placement : placement
});
document . getElementById ( popoverID ). classList . toggle ( " hidden " );
}
</script>
<div class= "flex flex-wrap" >
<div class= "w-full text-center" >
<button class= "bg-amber-500 text-white active:bg-amber-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150" type= "button" onclick= "openPopover(event,'top','popover-id-top-amber')" >
top amber
</button>
<div class= "hidden bg-amber-600 border-0 mr-3 block z-50 font-normal leading-normal text-sm max-w-xs text-left no-underline break-words rounded-lg" id= "popover-id-top-amber" >
<div>
<div class= "bg-amber-600 text-white opacity-75 font-semibold p-3 mb-0 border-b border-solid border-blueGray-100 uppercase rounded-t-lg" >
amber popover title
</div>
<div class= "text-white p-3" >
And here's some amazing content. It's very engaging. Right?
</div>
</div>
</div>
</div>
</div>
<script src= "https://unpkg.com/@popperjs/core@2" charset= "utf-8" ></script>
<script>
function openPopover ( event , placement , popoverID ){
let element = event . target ;
while ( element . nodeName !== " BUTTON " ){
element = element . parentNode ;
}
Popper . createPopper ( element , document . getElementById ( popoverID ), {
placement : placement
});
document . getElementById ( popoverID ). classList . toggle ( " hidden " );
}
</script>
<div class= "flex flex-wrap" >
<div class= "w-full text-center" >
<button class= "bg-emerald-500 text-white active:bg-emerald-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150" type= "button" onclick= "openPopover(event,'top','popover-id-top-emerald')" >
top emerald
</button>
<div class= "hidden bg-emerald-600 border-0 mr-3 block z-50 font-normal leading-normal text-sm max-w-xs text-left no-underline break-words rounded-lg" id= "popover-id-top-emerald" >
<div>
<div class= "bg-emerald-600 text-white opacity-75 font-semibold p-3 mb-0 border-b border-solid border-blueGray-100 uppercase rounded-t-lg" >
emerald popover title
</div>
<div class= "text-white p-3" >
And here's some amazing content. It's very engaging. Right?
</div>
</div>
</div>
</div>
</div>
<script src= "https://unpkg.com/@popperjs/core@2" charset= "utf-8" ></script>
<script>
function openPopover ( event , placement , popoverID ){
let element = event . target ;
while ( element . nodeName !== " BUTTON " ){
element = element . parentNode ;
}
Popper . createPopper ( element , document . getElementById ( popoverID ), {
placement : placement
});
document . getElementById ( popoverID ). classList . toggle ( " hidden " );
}
</script>
<div class= "flex flex-wrap" >
<div class= "w-full text-center" >
<button class= "bg-teal-500 text-white active:bg-teal-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150" type= "button" onclick= "openPopover(event,'top','popover-id-top-teal')" >
top teal
</button>
<div class= "hidden bg-teal-600 border-0 mr-3 block z-50 font-normal leading-normal text-sm max-w-xs text-left no-underline break-words rounded-lg" id= "popover-id-top-teal" >
<div>
<div class= "bg-teal-600 text-white opacity-75 font-semibold p-3 mb-0 border-b border-solid border-blueGray-100 uppercase rounded-t-lg" >
teal popover title
</div>
<div class= "text-white p-3" >
And here's some amazing content. It's very engaging. Right?
</div>
</div>
</div>
</div>
</div>
<script src= "https://unpkg.com/@popperjs/core@2" charset= "utf-8" ></script>
<script>
function openPopover ( event , placement , popoverID ){
let element = event . target ;
while ( element . nodeName !== " BUTTON " ){
element = element . parentNode ;
}
Popper . createPopper ( element , document . getElementById ( popoverID ), {
placement : placement
});
document . getElementById ( popoverID ). classList . toggle ( " hidden " );
}
</script>
<div class= "flex flex-wrap" >
<div class= "w-full text-center" >
<button class= "bg-lightBlue-500 text-white active:bg-lightBlue-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150" type= "button" onclick= "openPopover(event,'top','popover-id-top-lightBlue')" >
top lightBlue
</button>
<div class= "hidden bg-lightBlue-600 border-0 mr-3 block z-50 font-normal leading-normal text-sm max-w-xs text-left no-underline break-words rounded-lg" id= "popover-id-top-lightBlue" >
<div>
<div class= "bg-lightBlue-600 text-white opacity-75 font-semibold p-3 mb-0 border-b border-solid border-blueGray-100 uppercase rounded-t-lg" >
lightBlue popover title
</div>
<div class= "text-white p-3" >
And here's some amazing content. It's very engaging. Right?
</div>
</div>
</div>
</div>
</div>
<script src= "https://unpkg.com/@popperjs/core@2" charset= "utf-8" ></script>
<script>
function openPopover ( event , placement , popoverID ){
let element = event . target ;
while ( element . nodeName !== " BUTTON " ){
element = element . parentNode ;
}
Popper . createPopper ( element , document . getElementById ( popoverID ), {
placement : placement
});
document . getElementById ( popoverID ). classList . toggle ( " hidden " );
}
</script>
<div class= "flex flex-wrap" >
<div class= "w-full text-center" >
<button class= "bg-indigo-500 text-white active:bg-indigo-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150" type= "button" onclick= "openPopover(event,'top','popover-id-top-indigo')" >
top indigo
</button>
<div class= "hidden bg-indigo-600 border-0 mr-3 block z-50 font-normal leading-normal text-sm max-w-xs text-left no-underline break-words rounded-lg" id= "popover-id-top-indigo" >
<div>
<div class= "bg-indigo-600 text-white opacity-75 font-semibold p-3 mb-0 border-b border-solid border-blueGray-100 uppercase rounded-t-lg" >
indigo popover title
</div>
<div class= "text-white p-3" >
And here's some amazing content. It's very engaging. Right?
</div>
</div>
</div>
</div>
</div>
<script src= "https://unpkg.com/@popperjs/core@2" charset= "utf-8" ></script>
<script>
function openPopover ( event , placement , popoverID ){
let element = event . target ;
while ( element . nodeName !== " BUTTON " ){
element = element . parentNode ;
}
Popper . createPopper ( element , document . getElementById ( popoverID ), {
placement : placement
});
document . getElementById ( popoverID ). classList . toggle ( " hidden " );
}
</script>
<div class= "flex flex-wrap" >
<div class= "w-full text-center" >
<button class= "bg-purple-500 text-white active:bg-purple-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150" type= "button" onclick= "openPopover(event,'top','popover-id-top-purple')" >
top purple
</button>
<div class= "hidden bg-purple-600 border-0 mr-3 block z-50 font-normal leading-normal text-sm max-w-xs text-left no-underline break-words rounded-lg" id= "popover-id-top-purple" >
<div>
<div class= "bg-purple-600 text-white opacity-75 font-semibold p-3 mb-0 border-b border-solid border-blueGray-100 uppercase rounded-t-lg" >
purple popover title
</div>
<div class= "text-white p-3" >
And here's some amazing content. It's very engaging. Right?
</div>
</div>
</div>
</div>
</div>
<script src= "https://unpkg.com/@popperjs/core@2" charset= "utf-8" ></script>
<script>
function openPopover ( event , placement , popoverID ){
let element = event . target ;
while ( element . nodeName !== " BUTTON " ){
element = element . parentNode ;
}
Popper . createPopper ( element , document . getElementById ( popoverID ), {
placement : placement
});
document . getElementById ( popoverID ). classList . toggle ( " hidden " );
}
</script>
<div class= "flex flex-wrap" >
<div class= "w-full text-center" >
<button class= "bg-pink-500 text-white active:bg-pink-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150" type= "button" onclick= "openPopover(event,'top','popover-id-top-pink')" >
top pink
</button>
<div class= "hidden bg-pink-600 border-0 mr-3 block z-50 font-normal leading-normal text-sm max-w-xs text-left no-underline break-words rounded-lg" id= "popover-id-top-pink" >
<div>
<div class= "bg-pink-600 text-white opacity-75 font-semibold p-3 mb-0 border-b border-solid border-blueGray-100 uppercase rounded-t-lg" >
pink popover title
</div>
<div class= "text-white p-3" >
And here's some amazing content. It's very engaging. Right?
</div>
</div>
</div>
</div>
</div>
<script src= "https://unpkg.com/@popperjs/core@2" charset= "utf-8" ></script>
<script>
function openPopover ( event , placement , popoverID ){
let element = event . target ;
while ( element . nodeName !== " BUTTON " ){
element = element . parentNode ;
}
Popper . createPopper ( element , document . getElementById ( popoverID ), {
placement : placement
});
document . getElementById ( popoverID ). classList . toggle ( " hidden " );
}
</script>
Right
right blueGray
blueGray popover title
And here's some amazing content. It's very engaging.
Right?
right red
red popover title
And here's some amazing content. It's very engaging.
Right?
right orange
orange popover title
And here's some amazing content. It's very engaging.
Right?
right amber
amber popover title
And here's some amazing content. It's very engaging.
Right?
right emerald
emerald popover title
And here's some amazing content. It's very engaging.
Right?
right teal
teal popover title
And here's some amazing content. It's very engaging.
Right?
right lightBlue
lightBlue popover title
And here's some amazing content. It's very engaging.
Right?
right indigo
indigo popover title
And here's some amazing content. It's very engaging.
Right?
right purple
purple popover title
And here's some amazing content. It's very engaging.
Right?
right pink
pink popover title
And here's some amazing content. It's very engaging.
Right?
<div class= "flex flex-wrap" >
<div class= "w-full text-center" >
<button class= "bg-blueGray-500 text-white active:bg-blueGray-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150" type= "button" onclick= "openPopover(event,'right','popover-id-right-blueGray')" >
right blueGray
</button>
<div class= "hidden bg-blueGray-600 border-0 mr-3 block z-50 font-normal leading-normal text-sm max-w-xs text-left no-underline break-words rounded-lg" id= "popover-id-right-blueGray" >
<div>
<div class= "bg-blueGray-600 text-white opacity-75 font-semibold p-3 mb-0 border-b border-solid border-blueGray-100 uppercase rounded-t-lg" >
blueGray popover title
</div>
<div class= "text-white p-3" >
And here's some amazing content. It's very engaging. Right?
</div>
</div>
</div>
</div>
</div>
<script src= "https://unpkg.com/@popperjs/core@2" charset= "utf-8" ></script>
<script>
function openPopover ( event , placement , popoverID ){
let element = event . target ;
while ( element . nodeName !== " BUTTON " ){
element = element . parentNode ;
}
Popper . createPopper ( element , document . getElementById ( popoverID ), {
placement : placement
});
document . getElementById ( popoverID ). classList . toggle ( " hidden " );
}
</script>
<div class= "flex flex-wrap" >
<div class= "w-full text-center" >
<button class= "bg-red-500 text-white active:bg-red-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150" type= "button" onclick= "openPopover(event,'right','popover-id-right-red')" >
right red
</button>
<div class= "hidden bg-red-600 border-0 mr-3 block z-50 font-normal leading-normal text-sm max-w-xs text-left no-underline break-words rounded-lg" id= "popover-id-right-red" >
<div>
<div class= "bg-red-600 text-white opacity-75 font-semibold p-3 mb-0 border-b border-solid border-blueGray-100 uppercase rounded-t-lg" >
red popover title
</div>
<div class= "text-white p-3" >
And here's some amazing content. It's very engaging. Right?
</div>
</div>
</div>
</div>
</div>
<script src= "https://unpkg.com/@popperjs/core@2" charset= "utf-8" ></script>
<script>
function openPopover ( event , placement , popoverID ){
let element = event . target ;
while ( element . nodeName !== " BUTTON " ){
element = element . parentNode ;
}
Popper . createPopper ( element , document . getElementById ( popoverID ), {
placement : placement
});
document . getElementById ( popoverID ). classList . toggle ( " hidden " );
}
</script>
<div class= "flex flex-wrap" >
<div class= "w-full text-center" >
<button class= "bg-orange-500 text-white active:bg-orange-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150" type= "button" onclick= "openPopover(event,'right','popover-id-right-orange')" >
right orange
</button>
<div class= "hidden bg-orange-600 border-0 mr-3 block z-50 font-normal leading-normal text-sm max-w-xs text-left no-underline break-words rounded-lg" id= "popover-id-right-orange" >
<div>
<div class= "bg-orange-600 text-white opacity-75 font-semibold p-3 mb-0 border-b border-solid border-blueGray-100 uppercase rounded-t-lg" >
orange popover title
</div>
<div class= "text-white p-3" >
And here's some amazing content. It's very engaging. Right?
</div>
</div>
</div>
</div>
</div>
<script src= "https://unpkg.com/@popperjs/core@2" charset= "utf-8" ></script>
<script>
function openPopover ( event , placement , popoverID ){
let element = event . target ;
while ( element . nodeName !== " BUTTON " ){
element = element . parentNode ;
}
Popper . createPopper ( element , document . getElementById ( popoverID ), {
placement : placement
});
document . getElementById ( popoverID ). classList . toggle ( " hidden " );
}
</script>
<div class= "flex flex-wrap" >
<div class= "w-full text-center" >
<button class= "bg-amber-500 text-white active:bg-amber-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150" type= "button" onclick= "openPopover(event,'right','popover-id-right-amber')" >
right amber
</button>
<div class= "hidden bg-amber-600 border-0 mr-3 block z-50 font-normal leading-normal text-sm max-w-xs text-left no-underline break-words rounded-lg" id= "popover-id-right-amber" >
<div>
<div class= "bg-amber-600 text-white opacity-75 font-semibold p-3 mb-0 border-b border-solid border-blueGray-100 uppercase rounded-t-lg" >
amber popover title
</div>
<div class= "text-white p-3" >
And here's some amazing content. It's very engaging. Right?
</div>
</div>
</div>
</div>
</div>
<script src= "https://unpkg.com/@popperjs/core@2" charset= "utf-8" ></script>
<script>
function openPopover ( event , placement , popoverID ){
let element = event . target ;
while ( element . nodeName !== " BUTTON " ){
element = element . parentNode ;
}
Popper . createPopper ( element , document . getElementById ( popoverID ), {
placement : placement
});
document . getElementById ( popoverID ). classList . toggle ( " hidden " );
}
</script>
<div class= "flex flex-wrap" >
<div class= "w-full text-center" >
<button class= "bg-emerald-500 text-white active:bg-emerald-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150" type= "button" onclick= "openPopover(event,'right','popover-id-right-emerald')" >
right emerald
</button>
<div class= "hidden bg-emerald-600 border-0 mr-3 block z-50 font-normal leading-normal text-sm max-w-xs text-left no-underline break-words rounded-lg" id= "popover-id-right-emerald" >
<div>
<div class= "bg-emerald-600 text-white opacity-75 font-semibold p-3 mb-0 border-b border-solid border-blueGray-100 uppercase rounded-t-lg" >
emerald popover title
</div>
<div class= "text-white p-3" >
And here's some amazing content. It's very engaging. Right?
</div>
</div>
</div>
</div>
</div>
<script src= "https://unpkg.com/@popperjs/core@2" charset= "utf-8" ></script>
<script>
function openPopover ( event , placement , popoverID ){
let element = event . target ;
while ( element . nodeName !== " BUTTON " ){
element = element . parentNode ;
}
Popper . createPopper ( element , document . getElementById ( popoverID ), {
placement : placement
});
document . getElementById ( popoverID ). classList . toggle ( " hidden " );
}
</script>
<div class= "flex flex-wrap" >
<div class= "w-full text-center" >
<button class= "bg-teal-500 text-white active:bg-teal-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150" type= "button" onclick= "openPopover(event,'right','popover-id-right-teal')" >
right teal
</button>
<div class= "hidden bg-teal-600 border-0 mr-3 block z-50 font-normal leading-normal text-sm max-w-xs text-left no-underline break-words rounded-lg" id= "popover-id-right-teal" >
<div>
<div class= "bg-teal-600 text-white opacity-75 font-semibold p-3 mb-0 border-b border-solid border-blueGray-100 uppercase rounded-t-lg" >
teal popover title
</div>
<div class= "text-white p-3" >
And here's some amazing content. It's very engaging. Right?
</div>
</div>
</div>
</div>
</div>
<script src= "https://unpkg.com/@popperjs/core@2" charset= "utf-8" ></script>
<script>
function openPopover ( event , placement , popoverID ){
let element = event . target ;
while ( element . nodeName !== " BUTTON " ){
element = element . parentNode ;
}
Popper . createPopper ( element , document . getElementById ( popoverID ), {
placement : placement
});
document . getElementById ( popoverID ). classList . toggle ( " hidden " );
}
</script>
<div class= "flex flex-wrap" >
<div class= "w-full text-center" >
<button class= "bg-lightBlue-500 text-white active:bg-lightBlue-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150" type= "button" onclick= "openPopover(event,'right','popover-id-right-lightBlue')" >
right lightBlue
</button>
<div class= "hidden bg-lightBlue-600 border-0 mr-3 block z-50 font-normal leading-normal text-sm max-w-xs text-left no-underline break-words rounded-lg" id= "popover-id-right-lightBlue" >
<div>
<div class= "bg-lightBlue-600 text-white opacity-75 font-semibold p-3 mb-0 border-b border-solid border-blueGray-100 uppercase rounded-t-lg" >
lightBlue popover title
</div>
<div class= "text-white p-3" >
And here's some amazing content. It's very engaging. Right?
</div>
</div>
</div>
</div>
</div>
<script src= "https://unpkg.com/@popperjs/core@2" charset= "utf-8" ></script>
<script>
function openPopover ( event , placement , popoverID ){
let element = event . target ;
while ( element . nodeName !== " BUTTON " ){
element = element . parentNode ;
}
Popper . createPopper ( element , document . getElementById ( popoverID ), {
placement : placement
});
document . getElementById ( popoverID ). classList . toggle ( " hidden " );
}
</script>
<div class= "flex flex-wrap" >
<div class= "w-full text-center" >
<button class= "bg-indigo-500 text-white active:bg-indigo-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150" type= "button" onclick= "openPopover(event,'right','popover-id-right-indigo')" >
right indigo
</button>
<div class= "hidden bg-indigo-600 border-0 mr-3 block z-50 font-normal leading-normal text-sm max-w-xs text-left no-underline break-words rounded-lg" id= "popover-id-right-indigo" >
<div>
<div class= "bg-indigo-600 text-white opacity-75 font-semibold p-3 mb-0 border-b border-solid border-blueGray-100 uppercase rounded-t-lg" >
indigo popover title
</div>
<div class= "text-white p-3" >
And here's some amazing content. It's very engaging. Right?
</div>
</div>
</div>
</div>
</div>
<script src= "https://unpkg.com/@popperjs/core@2" charset= "utf-8" ></script>
<script>
function openPopover ( event , placement , popoverID ){
let element = event . target ;
while ( element . nodeName !== " BUTTON " ){
element = element . parentNode ;
}
Popper . createPopper ( element , document . getElementById ( popoverID ), {
placement : placement
});
document . getElementById ( popoverID ). classList . toggle ( " hidden " );
}
</script>
<div class= "flex flex-wrap" >
<div class= "w-full text-center" >
<button class= "bg-purple-500 text-white active:bg-purple-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150" type= "button" onclick= "openPopover(event,'right','popover-id-right-purple')" >
right purple
</button>
<div class= "hidden bg-purple-600 border-0 mr-3 block z-50 font-normal leading-normal text-sm max-w-xs text-left no-underline break-words rounded-lg" id= "popover-id-right-purple" >
<div>
<div class= "bg-purple-600 text-white opacity-75 font-semibold p-3 mb-0 border-b border-solid border-blueGray-100 uppercase rounded-t-lg" >
purple popover title
</div>
<div class= "text-white p-3" >
And here's some amazing content. It's very engaging. Right?
</div>
</div>
</div>
</div>
</div>
<script src= "https://unpkg.com/@popperjs/core@2" charset= "utf-8" ></script>
<script>
function openPopover ( event , placement , popoverID ){
let element = event . target ;
while ( element . nodeName !== " BUTTON " ){
element = element . parentNode ;
}
Popper . createPopper ( element , document . getElementById ( popoverID ), {
placement : placement
});
document . getElementById ( popoverID ). classList . toggle ( " hidden " );
}
</script>
<div class= "flex flex-wrap" >
<div class= "w-full text-center" >
<button class= "bg-pink-500 text-white active:bg-pink-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150" type= "button" onclick= "openPopover(event,'right','popover-id-right-pink')" >
right pink
</button>
<div class= "hidden bg-pink-600 border-0 mr-3 block z-50 font-normal leading-normal text-sm max-w-xs text-left no-underline break-words rounded-lg" id= "popover-id-right-pink" >
<div>
<div class= "bg-pink-600 text-white opacity-75 font-semibold p-3 mb-0 border-b border-solid border-blueGray-100 uppercase rounded-t-lg" >
pink popover title
</div>
<div class= "text-white p-3" >
And here's some amazing content. It's very engaging. Right?
</div>
</div>
</div>
</div>
</div>
<script src= "https://unpkg.com/@popperjs/core@2" charset= "utf-8" ></script>
<script>
function openPopover ( event , placement , popoverID ){
let element = event . target ;
while ( element . nodeName !== " BUTTON " ){
element = element . parentNode ;
}
Popper . createPopper ( element , document . getElementById ( popoverID ), {
placement : placement
});
document . getElementById ( popoverID ). classList . toggle ( " hidden " );
}
</script>
Bottom
bottom blueGray
blueGray popover title
And here's some amazing content. It's very engaging.
Right?
bottom red
red popover title
And here's some amazing content. It's very engaging.
Right?
bottom orange
orange popover title
And here's some amazing content. It's very engaging.
Right?
bottom amber
amber popover title
And here's some amazing content. It's very engaging.
Right?
bottom emerald
emerald popover title
And here's some amazing content. It's very engaging.
Right?
bottom teal
teal popover title
And here's some amazing content. It's very engaging.
Right?
bottom lightBlue
lightBlue popover title
And here's some amazing content. It's very engaging.
Right?
bottom indigo
indigo popover title
And here's some amazing content. It's very engaging.
Right?
bottom purple
purple popover title
And here's some amazing content. It's very engaging.
Right?
bottom pink
pink popover title
And here's some amazing content. It's very engaging.
Right?
<div class= "flex flex-wrap" >
<div class= "w-full text-center" >
<button class= "bg-blueGray-500 text-white active:bg-blueGray-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150" type= "button" onclick= "openPopover(event,'bottom','popover-id-bottom-blueGray')" >
bottom blueGray
</button>
<div class= "hidden bg-blueGray-600 border-0 mr-3 block z-50 font-normal leading-normal text-sm max-w-xs text-left no-underline break-words rounded-lg" id= "popover-id-bottom-blueGray" >
<div>
<div class= "bg-blueGray-600 text-white opacity-75 font-semibold p-3 mb-0 border-b border-solid border-blueGray-100 uppercase rounded-t-lg" >
blueGray popover title
</div>
<div class= "text-white p-3" >
And here's some amazing content. It's very engaging. Right?
</div>
</div>
</div>
</div>
</div>
<script src= "https://unpkg.com/@popperjs/core@2" charset= "utf-8" ></script>
<script>
function openPopover ( event , placement , popoverID ){
let element = event . target ;
while ( element . nodeName !== " BUTTON " ){
element = element . parentNode ;
}
Popper . createPopper ( element , document . getElementById ( popoverID ), {
placement : placement
});
document . getElementById ( popoverID ). classList . toggle ( " hidden " );
}
</script>
<div class= "flex flex-wrap" >
<div class= "w-full text-center" >
<button class= "bg-red-500 text-white active:bg-red-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150" type= "button" onclick= "openPopover(event,'bottom','popover-id-bottom-red')" >
bottom red
</button>
<div class= "hidden bg-red-600 border-0 mr-3 block z-50 font-normal leading-normal text-sm max-w-xs text-left no-underline break-words rounded-lg" id= "popover-id-bottom-red" >
<div>
<div class= "bg-red-600 text-white opacity-75 font-semibold p-3 mb-0 border-b border-solid border-blueGray-100 uppercase rounded-t-lg" >
red popover title
</div>
<div class= "text-white p-3" >
And here's some amazing content. It's very engaging. Right?
</div>
</div>
</div>
</div>
</div>
<script src= "https://unpkg.com/@popperjs/core@2" charset= "utf-8" ></script>
<script>
function openPopover ( event , placement , popoverID ){
let element = event . target ;
while ( element . nodeName !== " BUTTON " ){
element = element . parentNode ;
}
Popper . createPopper ( element , document . getElementById ( popoverID ), {
placement : placement
});
document . getElementById ( popoverID ). classList . toggle ( " hidden " );
}
</script>
<div class= "flex flex-wrap" >
<div class= "w-full text-center" >
<button class= "bg-orange-500 text-white active:bg-orange-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150" type= "button" onclick= "openPopover(event,'bottom','popover-id-bottom-orange')" >
bottom orange
</button>
<div class= "hidden bg-orange-600 border-0 mr-3 block z-50 font-normal leading-normal text-sm max-w-xs text-left no-underline break-words rounded-lg" id= "popover-id-bottom-orange" >
<div>
<div class= "bg-orange-600 text-white opacity-75 font-semibold p-3 mb-0 border-b border-solid border-blueGray-100 uppercase rounded-t-lg" >
orange popover title
</div>
<div class= "text-white p-3" >
And here's some amazing content. It's very engaging. Right?
</div>
</div>
</div>
</div>
</div>
<script src= "https://unpkg.com/@popperjs/core@2" charset= "utf-8" ></script>
<script>
function openPopover ( event , placement , popoverID ){
let element = event . target ;
while ( element . nodeName !== " BUTTON " ){
element = element . parentNode ;
}
Popper . createPopper ( element , document . getElementById ( popoverID ), {
placement : placement
});
document . getElementById ( popoverID ). classList . toggle ( " hidden " );
}
</script>
<div class= "flex flex-wrap" >
<div class= "w-full text-center" >
<button class= "bg-amber-500 text-white active:bg-amber-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150" type= "button" onclick= "openPopover(event,'bottom','popover-id-bottom-amber')" >
bottom amber
</button>
<div class= "hidden bg-amber-600 border-0 mr-3 block z-50 font-normal leading-normal text-sm max-w-xs text-left no-underline break-words rounded-lg" id= "popover-id-bottom-amber" >
<div>
<div class= "bg-amber-600 text-white opacity-75 font-semibold p-3 mb-0 border-b border-solid border-blueGray-100 uppercase rounded-t-lg" >
amber popover title
</div>
<div class= "text-white p-3" >
And here's some amazing content. It's very engaging. Right?
</div>
</div>
</div>
</div>
</div>
<script src= "https://unpkg.com/@popperjs/core@2" charset= "utf-8" ></script>
<script>
function openPopover ( event , placement , popoverID ){
let element = event . target ;
while ( element . nodeName !== " BUTTON " ){
element = element . parentNode ;
}
Popper . createPopper ( element , document . getElementById ( popoverID ), {
placement : placement
});
document . getElementById ( popoverID ). classList . toggle ( " hidden " );
}
</script>
<div class= "flex flex-wrap" >
<div class= "w-full text-center" >
<button class= "bg-emerald-500 text-white active:bg-emerald-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150" type= "button" onclick= "openPopover(event,'bottom','popover-id-bottom-emerald')" >
bottom emerald
</button>
<div class= "hidden bg-emerald-600 border-0 mr-3 block z-50 font-normal leading-normal text-sm max-w-xs text-left no-underline break-words rounded-lg" id= "popover-id-bottom-emerald" >
<div>
<div class= "bg-emerald-600 text-white opacity-75 font-semibold p-3 mb-0 border-b border-solid border-blueGray-100 uppercase rounded-t-lg" >
emerald popover title
</div>
<div class= "text-white p-3" >
And here's some amazing content. It's very engaging. Right?
</div>
</div>
</div>
</div>
</div>
<script src= "https://unpkg.com/@popperjs/core@2" charset= "utf-8" ></script>
<script>
function openPopover ( event , placement , popoverID ){
let element = event . target ;
while ( element . nodeName !== " BUTTON " ){
element = element . parentNode ;
}
Popper . createPopper ( element , document . getElementById ( popoverID ), {
placement : placement
});
document . getElementById ( popoverID ). classList . toggle ( " hidden " );
}
</script>
<div class= "flex flex-wrap" >
<div class= "w-full text-center" >
<button class= "bg-teal-500 text-white active:bg-teal-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150" type= "button" onclick= "openPopover(event,'bottom','popover-id-bottom-teal')" >
bottom teal
</button>
<div class= "hidden bg-teal-600 border-0 mr-3 block z-50 font-normal leading-normal text-sm max-w-xs text-left no-underline break-words rounded-lg" id= "popover-id-bottom-teal" >
<div>
<div class= "bg-teal-600 text-white opacity-75 font-semibold p-3 mb-0 border-b border-solid border-blueGray-100 uppercase rounded-t-lg" >
teal popover title
</div>
<div class= "text-white p-3" >
And here's some amazing content. It's very engaging. Right?
</div>
</div>
</div>
</div>
</div>
<script src= "https://unpkg.com/@popperjs/core@2" charset= "utf-8" ></script>
<script>
function openPopover ( event , placement , popoverID ){
let element = event . target ;
while ( element . nodeName !== " BUTTON " ){
element = element . parentNode ;
}
Popper . createPopper ( element , document . getElementById ( popoverID ), {
placement : placement
});
document . getElementById ( popoverID ). classList . toggle ( " hidden " );
}
</script>
<div class= "flex flex-wrap" >
<div class= "w-full text-center" >
<button class= "bg-lightBlue-500 text-white active:bg-lightBlue-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150" type= "button" onclick= "openPopover(event,'bottom','popover-id-bottom-lightBlue')" >
bottom lightBlue
</button>
<div class= "hidden bg-lightBlue-600 border-0 mr-3 block z-50 font-normal leading-normal text-sm max-w-xs text-left no-underline break-words rounded-lg" id= "popover-id-bottom-lightBlue" >
<div>
<div class= "bg-lightBlue-600 text-white opacity-75 font-semibold p-3 mb-0 border-b border-solid border-blueGray-100 uppercase rounded-t-lg" >
lightBlue popover title
</div>
<div class= "text-white p-3" >
And here's some amazing content. It's very engaging. Right?
</div>
</div>
</div>
</div>
</div>
<script src= "https://unpkg.com/@popperjs/core@2" charset= "utf-8" ></script>
<script>
function openPopover ( event , placement , popoverID ){
let element = event . target ;
while ( element . nodeName !== " BUTTON " ){
element = element . parentNode ;
}
Popper . createPopper ( element , document . getElementById ( popoverID ), {
placement : placement
});
document . getElementById ( popoverID ). classList . toggle ( " hidden " );
}
</script>
<div class= "flex flex-wrap" >
<div class= "w-full text-center" >
<button class= "bg-indigo-500 text-white active:bg-indigo-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150" type= "button" onclick= "openPopover(event,'bottom','popover-id-bottom-indigo')" >
bottom indigo
</button>
<div class= "hidden bg-indigo-600 border-0 mr-3 block z-50 font-normal leading-normal text-sm max-w-xs text-left no-underline break-words rounded-lg" id= "popover-id-bottom-indigo" >
<div>
<div class= "bg-indigo-600 text-white opacity-75 font-semibold p-3 mb-0 border-b border-solid border-blueGray-100 uppercase rounded-t-lg" >
indigo popover title
</div>
<div class= "text-white p-3" >
And here's some amazing content. It's very engaging. Right?
</div>
</div>
</div>
</div>
</div>
<script src= "https://unpkg.com/@popperjs/core@2" charset= "utf-8" ></script>
<script>
function openPopover ( event , placement , popoverID ){
let element = event . target ;
while ( element . nodeName !== " BUTTON " ){
element = element . parentNode ;
}
Popper . createPopper ( element , document . getElementById ( popoverID ), {
placement : placement
});
document . getElementById ( popoverID ). classList . toggle ( " hidden " );
}
</script>
<div class= "flex flex-wrap" >
<div class= "w-full text-center" >
<button class= "bg-purple-500 text-white active:bg-purple-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150" type= "button" onclick= "openPopover(event,'bottom','popover-id-bottom-purple')" >
bottom purple
</button>
<div class= "hidden bg-purple-600 border-0 mr-3 block z-50 font-normal leading-normal text-sm max-w-xs text-left no-underline break-words rounded-lg" id= "popover-id-bottom-purple" >
<div>
<div class= "bg-purple-600 text-white opacity-75 font-semibold p-3 mb-0 border-b border-solid border-blueGray-100 uppercase rounded-t-lg" >
purple popover title
</div>
<div class= "text-white p-3" >
And here's some amazing content. It's very engaging. Right?
</div>
</div>
</div>
</div>
</div>
<script src= "https://unpkg.com/@popperjs/core@2" charset= "utf-8" ></script>
<script>
function openPopover ( event , placement , popoverID ){
let element = event . target ;
while ( element . nodeName !== " BUTTON " ){
element = element . parentNode ;
}
Popper . createPopper ( element , document . getElementById ( popoverID ), {
placement : placement
});
document . getElementById ( popoverID ). classList . toggle ( " hidden " );
}
</script>
<div class= "flex flex-wrap" >
<div class= "w-full text-center" >
<button class= "bg-pink-500 text-white active:bg-pink-600 font-bold uppercase text-sm px-6 py-3 rounded shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150" type= "button" onclick= "openPopover(event,'bottom','popover-id-bottom-pink')" >
bottom pink
</button>
<div class= "hidden bg-pink-600 border-0 mr-3 block z-50 font-normal leading-normal text-sm max-w-xs text-left no-underline break-words rounded-lg" id= "popover-id-bottom-pink" >
<div>
<div class= "bg-pink-600 text-white opacity-75 font-semibold p-3 mb-0 border-b border-solid border-blueGray-100 uppercase rounded-t-lg" >
pink popover title
</div>
<div class= "text-white p-3" >
And here's some amazing content. It's very engaging. Right?
</div>
</div>
</div>
</div>
</div>
<script src= "https://unpkg.com/@popperjs/core@2" charset= "utf-8" ></script>
<script>
function openPopover ( event , placement , popoverID ){
let element = event . target ;
while ( element . nodeName !== " BUTTON " ){
element = element . parentNode ;
}
Popper . createPopper ( element , document . getElementById ( popoverID ), {
placement : placement
});
document . getElementById ( popoverID ). classList . toggle ( " hidden " );
}
</script>
Props
Please check the official
PopperJS Documentation .
You can also check the
Official PopperJS Github Repository .