<!-- 1. Create the single toast -->
<script lang="ts">
import { normalizeProps, useActor } from "@zag-js/svelte"
import * as toast from "@zag-js/toast"
interface Props {
actor: toast.Service
}
This file contains 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
class Search { | |
constructor(list, options = {}) { | |
this.list = list; | |
this.options = { | |
isCaseSensitive: options.isCaseSensitive || false, | |
includeScore: options.includeScore || false, | |
shouldSort: options.shouldSort || true, | |
includeMatches: options.includeMatches || false, | |
minMatchCharLength: options.minMatchCharLength || 1, | |
threshold: options.threshold || 0.6, |
This file contains 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
https://github.com/chakra-ui/chakra-ui/issues/2893#issuecomment-780143150 |
<svg>
<style>
path { fill: black; }
@media (prefers-color-scheme: dark) {
path { fill: white; }
}
</style>
function Usage() {
const inputStyles = useMultiStyleConfig("Input", { size:'md', variant:'filled' }).field
const tagStyles = useStyleConfig("InputGroup", { size: 'sm' })
console.log(tagStyles)
return (
<Wrap w="100%" tabIndex="1" __css={inputStyles} display="flex" align="center" h="auto" py="2" >
<Tag
$(document).on('mousedown', '#inputMenu li', function (e) {
$('#input').val($(this).text());
$('#inputMenu').removeClass('active');
e.preventDefault();
return false
});
$('#input').on('focusout',function(e) {
$('#inputMenu').removeClass('active');
Get deps with
npx npm-remote-ls --flatten @chakra-ui/react -d false -o false
NB: Apostrophe must be double quotes
const deps = [
"@chakra-ui/[email protected]",
This file contains 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
https://codepen.io/denic/pen/GRoOxbM |
import type { AppProps } from "next/app";
import { AnimatePresence, motion } from "framer-motion";
import { ChakraProvider, DarkMode, Box, BoxProps } from "@chakra-ui/react";
import Head from "next/head";
import { theme } from "../theme";
import { PageWrapper } from "../components/PageWrapper";
import { Header } from "../components/Header";
import { Footer } from "../components/Footer";
interface FormProps<T extends Record<string, any>> {
initialValues: T;
children: (fields: T) => any
}
NewerOlder