Skip to content

Instantly share code, notes, and snippets.

View amosmachora's full-sized avatar
🏠
Working from home

Amos Machora amosmachora

🏠
Working from home
View GitHub Profile
@webdiego
webdiego / toast.tsx
Last active January 26, 2025 15:32
Toast variant success - shadcn/ui
import * as React from "react";
import * as ToastPrimitives from "@radix-ui/react-toast";
import { cva, type VariantProps } from "class-variance-authority";
import { X } from "lucide-react";
import { cn } from "@/lib/utils";
const ToastProvider = ToastPrimitives.Provider;
const ToastViewport = React.forwardRef<
@sayandedotcom
sayandedotcom / gist:cfd39848edd55a2955b2a5efea99dc8e
Created July 30, 2023 16:22
React Select Library with shadcnui's design systems and forms !
1. Select Component ---------------------------------------------------------------------------------
"use client";
import clsx from "clsx";
import { ChevronDownIcon, X } from "lucide-react";
import Select, {
ClearIndicatorProps,
DropdownIndicatorProps,
MultiValueRemoveProps,