Skip to content

Instantly share code, notes, and snippets.

View webdiego's full-sized avatar
🛸
Exploring

Diego Massarini webdiego

🛸
Exploring
View GitHub Profile
@webdiego
webdiego / toast.tsx
Last active February 7, 2024 20:43
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<
@webdiego
webdiego / Chart.js
Created October 30, 2021 09:22
Chart rect-native
import React from 'react';
import Svg, { G, Circle } from 'react-native-svg';
import tw from 'tailwind-react-native-classnames';
import { Text, View } from 'react-native';
export default function Chart({
width,
height,
stroke,
weight,