1
0
Fork 0

feat(fs.shared): Allow passing className to Popout

This commit is contained in:
Joost De Cock 2021-12-28 16:11:46 +01:00
parent 65d72ad66e
commit 14a56e4617

View file

@ -30,9 +30,10 @@ const Popout = (props) => {
if (props[t]) type = t
}
const color = colors[type]
const { className=''} = props
return (
<div className={`relative my-8 bg-${color} bg-opacity-5`}>
<div className={`relative my-8 bg-${color} bg-opacity-5 ${className}`}>
<div className={`
border-y-4 sm:border-0 sm:border-l-4 px-6 sm:px-8 py-4 sm:py-2 shadow text-base border-${color}`}>
<div className={`font-bold flex flex-row gap-1 items-end` }>