Skip to content

Instantly share code, notes, and snippets.

@rizkiramadhanx
Created January 31, 2024 04:52
Show Gist options
  • Select an option

  • Save rizkiramadhanx/044de34954fdaeb1238f541de775e96f to your computer and use it in GitHub Desktop.

Select an option

Save rizkiramadhanx/044de34954fdaeb1238f541de775e96f to your computer and use it in GitHub Desktop.

Revisions

  1. rizkiramadhanx created this gist Jan 31, 2024.
    7 changes: 7 additions & 0 deletions cn utils (Reusable Component)
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    import { ClassValue } from "class-variance-authority/types";
    import clsx from "clsx";
    import { twMerge } from "tailwind-merge";

    export function cn(...inputs: ClassValue[]) {
    return twMerge(clsx(inputs));
    }