This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useRef, useEffect } from "react"; | |
import classNames from "classnames"; | |
export default function Ripple({ as, children, className, ...props }) { | |
const rippleRef = useRef(null); | |
useEffect(() => { | |
const ripple = (e) => { | |
const ripple = document.createElement("span"); | |
ripple.classList.add("ripple"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>HTML Animated Tabs</title> | |
<script src="https://cdn.tailwindcss.com"></script> | |
</head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import '../styles/globals.css' | |
import { Provider as LanguageProvider } from 'context/language' | |
function MyApp({ Component, pageProps }) { | |
return <> | |
<LanguageProvider> | |
<Component {...pageProps} /> | |
</LanguageProvider> | |
</> | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { Fragment, useState, useEffect } = require("react"); | |
const { Transition } = require("@headlessui/react"); | |
module.exports = ({ | |
title = "", | |
content = "", | |
buttons = [], | |
classes = "", | |
onDiscard = "", | |
onConfirm = "", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>TailwindCSS Card</title> | |
<script src="https://cdn.tailwindcss.com"></script> | |
<link href="https://pro.fontawesome.com/releases/v6.0.0-beta1/css/all.css" rel="stylesheet" /> | |
</head> |