text stringlengths 21 253k | id stringlengths 25 123 | metadata dict | __index_level_0__ int64 0 181 |
|---|---|---|---|
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M22 10.5V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h12.5" />
<path d="m22 7-8.97 5.7a1.94 1.94 0 0 1... | lucide-icons/lucide/icons/mail-question.svg | {
"file_path": "lucide-icons/lucide/icons/mail-question.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 258
} | 64 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M19.43 12.935c.357-.967.57-1.955.57-2.935a8 8 0 0 0-16 0c0 4.993 5.539 10.193 7.399 11.799a1 1 0 0 0 1.202 0... | lucide-icons/lucide/icons/map-pin-check.svg | {
"file_path": "lucide-icons/lucide/icons/map-pin-check.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 211
} | 65 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M9.26 9.26 3 11v3l14.14 3.14" />
<path d="M21 15.34V6l-7.31 2.03" />
<path d="M11.6 16.8a3 3 0 1 1-5.8-1... | lucide-icons/lucide/icons/megaphone-off.svg | {
"file_path": "lucide-icons/lucide/icons/megaphone-off.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 194
} | 66 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M7.9 20A9 9 0 1 0 4 16.1L2 22Z" />
<path d="M15.8 9.2a2.5 2.5 0 0 0-3.5 0l-.3.4-.35-.3a2.42 2.42 0 1 0-3.2... | lucide-icons/lucide/icons/message-circle-heart.svg | {
"file_path": "lucide-icons/lucide/icons/message-circle-heart.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 209
} | 67 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M21 15V5a2 2 0 0 0-2-2H9" />
<path d="m2 2 20 20" />
<path d="M3.6 3.6c-.4.3-.6.8-.6 1.4v16l4-4h10" />
<... | lucide-icons/lucide/icons/message-square-off.svg | {
"file_path": "lucide-icons/lucide/icons/message-square-off.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 166
} | 68 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M15.707 21.293a1 1 0 0 1-1.414 0l-1.586-1.586a1 1 0 0 1 0-1.414l5.586-5.586a1 1 0 0 1 1.414 0l1.586 1.586a1 ... | lucide-icons/lucide/icons/pen-tool.svg | {
"file_path": "lucide-icons/lucide/icons/pen-tool.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 284
} | 69 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M2 22h20" />
<path d="M3.77 10.77 2 9l2-4.5 1.1.55c.55.28.9.84.9 1.45s.35 1.17.9 1.45L8 8.5l3-6 1.05.53a2 ... | lucide-icons/lucide/icons/plane-landing.svg | {
"file_path": "lucide-icons/lucide/icons/plane-landing.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 285
} | 70 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M3 2v1c0 1 2 1 2 2S3 6 3 7s2 1 2 2-2 1-2 2 2 1 2 2" />
<path d="M18 6h.01" />
<path d="M6 18h.01" />
<... | lucide-icons/lucide/icons/pocket-knife.svg | {
"file_path": "lucide-icons/lucide/icons/pocket-knife.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 231
} | 71 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<circle cx="8" cy="21" r="1" />
<circle cx="19" cy="21" r="1" />
<path d="M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.5... | lucide-icons/lucide/icons/shopping-cart.svg | {
"file_path": "lucide-icons/lucide/icons/shopping-cart.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 188
} | 72 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<polygon points="19 20 9 12 19 4 19 20" />
<line x1="5" x2="5" y1="19" y2="5" />
</svg>
| lucide-icons/lucide/icons/skip-back.svg | {
"file_path": "lucide-icons/lucide/icons/skip-back.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 133
} | 73 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M12 21a9 9 0 0 0 9-9H3a9 9 0 0 0 9 9Z" />
<path d="M7 21h10" />
<path d="M19.5 12 22 6" />
<path d="M1... | lucide-icons/lucide/icons/soup.svg | {
"file_path": "lucide-icons/lucide/icons/soup.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 315
} | 74 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M8 19H5c-1 0-2-1-2-2V7c0-1 1-2 2-2h3" />
<path d="M16 5h3c1 0 2 1 2 2v10c0 1-1 2-2 2h-3" />
<line x1="12... | lucide-icons/lucide/icons/square-split-horizontal.svg | {
"file_path": "lucide-icons/lucide/icons/square-split-horizontal.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 189
} | 75 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2" />
<path d="M8.5 2h7" />
<path d="M14.5 16h... | lucide-icons/lucide/icons/test-tube.svg | {
"file_path": "lucide-icons/lucide/icons/test-tube.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 182
} | 76 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M2 10s3-3 3-8" />
<path d="M22 10s-3-3-3-8" />
<path d="M10 2c0 4.4-3.6 8-8 8" />
<path d="M14 2c0 4.4... | lucide-icons/lucide/icons/theater.svg | {
"file_path": "lucide-icons/lucide/icons/theater.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 292
} | 77 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M3 6h18" />
<path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6" />
<path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2... | lucide-icons/lucide/icons/trash-2.svg | {
"file_path": "lucide-icons/lucide/icons/trash-2.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 226
} | 78 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<circle cx="12" cy="10" r="1" />
<path d="M22 20V8h-4l-6-4-6 4H2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2" />
<path d="M... | lucide-icons/lucide/icons/university.svg | {
"file_path": "lucide-icons/lucide/icons/university.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 246
} | 79 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="m16 2-2.3 2.3a3 3 0 0 0 0 4.2l1.8 1.8a3 3 0 0 0 4.2 0L22 8" />
<path d="M15 15 3.3 3.3a4.2 4.2 0 0 0 0 6l7... | lucide-icons/lucide/icons/utensils-crossed.svg | {
"file_path": "lucide-icons/lucide/icons/utensils-crossed.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 232
} | 80 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="m2 8 2 2-2 2 2 2-2 2" />
<path d="m22 8-2 2 2 2-2 2 2 2" />
<rect width="8" height="14" x="8" y="5" rx="... | lucide-icons/lucide/icons/vibrate.svg | {
"file_path": "lucide-icons/lucide/icons/vibrate.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 159
} | 81 |
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 ... | lucide-icons/lucide/icons/wand-sparkles.svg | {
"file_path": "lucide-icons/lucide/icons/wand-sparkles.svg",
"repo_id": "lucide-icons/lucide",
"token_count": 285
} | 82 |
import { Injectable } from '@angular/core';
import defaultAttributes from '../icons/constants/default-attributes';
/**
* A configuration service for Lucide icon components.
*
* You can inject this service, typically in AppComponent, and customize its property values in
* order to provide default values for all the... | lucide-icons/lucide/packages/lucide-angular/src/lib/lucide-icon.config.ts | {
"file_path": "lucide-icons/lucide/packages/lucide-angular/src/lib/lucide-icon.config.ts",
"repo_id": "lucide-icons/lucide",
"token_count": 154
} | 83 |
import plugins from '@lucide/rollup-plugins';
import dts from 'rollup-plugin-dts';
import pkg from './package.json' assert { type: 'json' };
const packageName = 'LucideReact';
const outputFileName = 'lucide-react-native';
const outputDir = 'dist';
const inputs = ['src/lucide-react-native.ts'];
const bundles = [
{
... | lucide-icons/lucide/packages/lucide-react-native/rollup.config.mjs | {
"file_path": "lucide-icons/lucide/packages/lucide-react-native/rollup.config.mjs",
"repo_id": "lucide-icons/lucide",
"token_count": 664
} | 84 |
import { describe, it, expect } from 'vitest';
import { createLucideIcon } from '../src/lucide-react';
import { airVent } from './testIconNodes';
import { render } from '@testing-library/react';
describe('Using createLucideIcon', () => {
it('should create a component from an iconNode', () => {
const AirVent = cr... | lucide-icons/lucide/packages/lucide-react/tests/createLucideIcon.spec.tsx | {
"file_path": "lucide-icons/lucide/packages/lucide-react/tests/createLucideIcon.spec.tsx",
"repo_id": "lucide-icons/lucide",
"token_count": 169
} | 85 |
import { writeFile } from '@lucide/helpers';
export default function generateIconNodes(parsedSvgs, packageDir) {
const iconNodes = parsedSvgs.reduce((acc, { name, parsedSvg }) => {
acc[name] = parsedSvg.children.map(({ name, attributes }) => [name, attributes]);
return acc;
}, {});
const iconNodesStrin... | lucide-icons/lucide/packages/lucide-static/scripts/generateIconNodes.mjs | {
"file_path": "lucide-icons/lucide/packages/lucide-static/scripts/generateIconNodes.mjs",
"repo_id": "lucide-icons/lucide",
"token_count": 149
} | 86 |
type Booleanish = boolean | 'true' | 'false';
interface AriaAttributes {
'aria-activedescendant'?: string | undefined;
'aria-atomic'?: Booleanish | undefined;
'aria-autocomplete'?: 'none' | 'inline' | 'list' | 'both' | undefined;
'aria-busy'?: Booleanish | undefined;
'aria-checked'?: boolean | 'false' | 'mix... | lucide-icons/lucide/packages/lucide/src/attributeTypes.ts | {
"file_path": "lucide-icons/lucide/packages/lucide/src/attributeTypes.ts",
"repo_id": "lucide-icons/lucide",
"token_count": 1016
} | 87 |
import path from 'path';
import { writeFile, getCurrentDirPath, readAllMetadata } from '../tools/build-helpers/helpers.mjs';
const currentDir = getCurrentDirPath(import.meta.url);
const ICONS_DIR = path.resolve(currentDir, '../icons');
const icons = readAllMetadata(ICONS_DIR);
const newCategories = {};
Object.keys(ic... | lucide-icons/lucide/scripts/migrateIconsToCategories.mjs | {
"file_path": "lucide-icons/lucide/scripts/migrateIconsToCategories.mjs",
"repo_id": "lucide-icons/lucide",
"token_count": 275
} | 88 |
/* eslint-disable import/prefer-default-export */
import fs from 'fs';
import path from 'path';
/**
* append content to a file
*
* @param {string} content
* @param {string} fileName
* @param {string} outputDirectory
*/
export const appendFile = (content, fileName, outputDirectory) =>
fs.appendFileSync(path.joi... | lucide-icons/lucide/tools/build-helpers/src/appendFile.mjs | {
"file_path": "lucide-icons/lucide/tools/build-helpers/src/appendFile.mjs",
"repo_id": "lucide-icons/lucide",
"token_count": 111
} | 89 |
/* eslint-disable import/prefer-default-export */
import { toCamelCase } from './toCamelCase.mjs';
/**
* Converts string to PascalCase
*
* @param {string} string
* @returns {string} A pascalized string
*/
export const toPascalCase = (string) => {
const camelCase = toCamelCase(string);
return camelCase.charAt... | lucide-icons/lucide/tools/build-helpers/src/toPascalCase.mjs | {
"file_path": "lucide-icons/lucide/tools/build-helpers/src/toPascalCase.mjs",
"repo_id": "lucide-icons/lucide",
"token_count": 123
} | 90 |
import path from 'path';
import { readSvgDirectory } from '@lucide/helpers';
async function getAliases(iconDirectory) {
const iconJsons = readSvgDirectory(iconDirectory, '.json');
const aliasesEntries = await Promise.all(
iconJsons.map(async (jsonFile) => {
const file = await import(path.join(iconDirecto... | lucide-icons/lucide/tools/build-icons/utils/getAliases.mjs | {
"file_path": "lucide-icons/lucide/tools/build-icons/utils/getAliases.mjs",
"repo_id": "lucide-icons/lucide",
"token_count": 175
} | 91 |
import {
Body,
Button,
Column,
Container,
Head,
Html,
Img,
Preview,
Row,
Section,
Tailwind,
Text,
} from "@react-email/components";
const siteUrl =
process.env.NEXT_PUBLIC_URL ?? "https://chadnext.moinulmoin.com";
interface VerificationTemplateProps {
userName: string;
code: string;
}
c... | moinulmoin/chadnext/emails/verification.tsx | {
"file_path": "moinulmoin/chadnext/emails/verification.tsx",
"repo_id": "moinulmoin/chadnext",
"token_count": 990
} | 92 |
"use server";
import { freePlan, proPlan } from "~/config/subscription";
import prisma from "~/lib/prisma";
import { type UserSubscriptionPlan } from "~/types";
export async function getUserSubscriptionPlan(
userId: string
): Promise<UserSubscriptionPlan> {
const user = await prisma.user.findFirst({
where: {
... | moinulmoin/chadnext/src/actions/subscription.ts | {
"file_path": "moinulmoin/chadnext/src/actions/subscription.ts",
"repo_id": "moinulmoin/chadnext",
"token_count": 354
} | 93 |
import { Skeleton } from "~/components/ui/skeleton";
export default function Loading() {
return (
<div className="grid gap-4 md:grid-cols-3 lg:grid-cols-4">
<Skeleton className="h-36 rounded-lg" />
<Skeleton className="h-36 rounded-lg" />
<Skeleton className="h-36 rounded-lg" />
<Skeleton... | moinulmoin/chadnext/src/app/[locale]/dashboard/projects/loading.tsx | {
"file_path": "moinulmoin/chadnext/src/app/[locale]/dashboard/projects/loading.tsx",
"repo_id": "moinulmoin/chadnext",
"token_count": 157
} | 94 |
import { createUploadthing, type FileRouter } from "uploadthing/next";
import { UploadThingError } from "uploadthing/server";
import { validateRequest } from "~/actions/auth";
const f = createUploadthing();
// FileRouter for your app, can contain multiple FileRoutes
export const ourFileRouter = {
// Define as many ... | moinulmoin/chadnext/src/app/api/uploadthing/core.ts | {
"file_path": "moinulmoin/chadnext/src/app/api/uploadthing/core.ts",
"repo_id": "moinulmoin/chadnext",
"token_count": 330
} | 95 |
"use client";
import React from "react";
import Icons from "./shared/icons";
import { Button } from "./ui/button";
import { toast } from "./ui/use-toast";
export default function CopyButton({ content }: { content: string }) {
const copyToClipboard = (content: string) => {
if (!navigator.clipboard) {
toast... | moinulmoin/chadnext/src/components/copy-button.tsx | {
"file_path": "moinulmoin/chadnext/src/components/copy-button.tsx",
"repo_id": "moinulmoin/chadnext",
"token_count": 339
} | 96 |
"use client";
import { CheckIcon, LanguagesIcon } from "lucide-react";
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuShortcut,
DropdownMenuTrigger,
} from "~/components/ui/dropdown-menu";
import { useChangeLocale, useCurrentLocale } from "~/locales/client";
import { Button } from "... | moinulmoin/chadnext/src/components/shared/locale-toggler.tsx | {
"file_path": "moinulmoin/chadnext/src/components/shared/locale-toggler.tsx",
"repo_id": "moinulmoin/chadnext",
"token_count": 660
} | 97 |
import { createI18nServer } from "next-international/server";
export const { getI18n, getScopedI18n, getStaticParams, getCurrentLocale } =
createI18nServer({
en: () => import("./en"),
fr: () => import("./fr"),
});
| moinulmoin/chadnext/src/locales/server.ts | {
"file_path": "moinulmoin/chadnext/src/locales/server.ts",
"repo_id": "moinulmoin/chadnext",
"token_count": 84
} | 98 |
"use client";
import {
Card,
CardContent,
CardFooter,
CardHeader,
} from "@/components/ui/card";
import { Building2, Clock, Mail, Phone } from "lucide-react";
import { useForm } from "react-hook-form";
import { z } from "zod";
import { zodResolver } from "@hookform/resolvers/zod";
import {
Form,
FormControl... | nobruf/shadcn-landing-page/components/layout/sections/contact.tsx | {
"file_path": "nobruf/shadcn-landing-page/components/layout/sections/contact.tsx",
"repo_id": "nobruf/shadcn-landing-page",
"token_count": 4846
} | 99 |
import { redirect } from "next/navigation"
import { authOptions } from "@/lib/auth"
import { getCurrentUser } from "@/lib/session"
import { stripe } from "@/lib/stripe"
import { getUserSubscriptionPlan } from "@/lib/subscription"
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"
import {
Ca... | shadcn-ui/taxonomy/app/(dashboard)/dashboard/billing/page.tsx | {
"file_path": "shadcn-ui/taxonomy/app/(dashboard)/dashboard/billing/page.tsx",
"repo_id": "shadcn-ui/taxonomy",
"token_count": 894
} | 100 |
import { notFound } from "next/navigation"
import { allPages } from "contentlayer/generated"
import { Mdx } from "@/components/mdx-components"
import "@/styles/mdx.css"
import { Metadata } from "next"
import { env } from "@/env.mjs"
import { siteConfig } from "@/config/site"
import { absoluteUrl } from "@/lib/utils"... | shadcn-ui/taxonomy/app/(marketing)/[...slug]/page.tsx | {
"file_path": "shadcn-ui/taxonomy/app/(marketing)/[...slug]/page.tsx",
"repo_id": "shadcn-ui/taxonomy",
"token_count": 937
} | 101 |
import * as React from "react"
import Link from "next/link"
import { MainNavItem } from "types"
import { siteConfig } from "@/config/site"
import { cn } from "@/lib/utils"
import { useLockBody } from "@/hooks/use-lock-body"
import { Icons } from "@/components/icons"
interface MobileNavProps {
items: MainNavItem[]
... | shadcn-ui/taxonomy/components/mobile-nav.tsx | {
"file_path": "shadcn-ui/taxonomy/components/mobile-nav.tsx",
"repo_id": "shadcn-ui/taxonomy",
"token_count": 686
} | 102 |
"use client"
import * as React from "react"
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog"
import { cn } from "@/lib/utils"
import { buttonVariants } from "@/components/ui/button"
const AlertDialog = AlertDialogPrimitive.Root
const AlertDialogTrigger = AlertDialogPrimitive.Trigger
const Alert... | shadcn-ui/taxonomy/components/ui/alert-dialog.tsx | {
"file_path": "shadcn-ui/taxonomy/components/ui/alert-dialog.tsx",
"repo_id": "shadcn-ui/taxonomy",
"token_count": 1530
} | 103 |
"use client"
import {
Toast,
ToastClose,
ToastDescription,
ToastProvider,
ToastTitle,
ToastViewport,
} from "@/components/ui/toast"
import { useToast } from "@/components/ui/use-toast"
export function Toaster() {
const { toasts } = useToast()
return (
<ToastProvider>
{toasts.map(function ({... | shadcn-ui/taxonomy/components/ui/toaster.tsx | {
"file_path": "shadcn-ui/taxonomy/components/ui/toaster.tsx",
"repo_id": "shadcn-ui/taxonomy",
"token_count": 385
} | 104 |
import { PrismaAdapter } from "@next-auth/prisma-adapter"
import { NextAuthOptions } from "next-auth"
import EmailProvider from "next-auth/providers/email"
import GitHubProvider from "next-auth/providers/github"
import { Client } from "postmark"
import { env } from "@/env.mjs"
import { siteConfig } from "@/config/site... | shadcn-ui/taxonomy/lib/auth.ts | {
"file_path": "shadcn-ui/taxonomy/lib/auth.ts",
"repo_id": "shadcn-ui/taxonomy",
"token_count": 1287
} | 105 |
import { Metadata } from "next"
import Image from "next/image"
import Link from "next/link"
import { cn } from "@/lib/utils"
import { buttonVariants } from "@/registry/new-york/ui/button"
import { UserAuthForm } from "@/app/(app)/examples/authentication/components/user-auth-form"
export const metadata: Metadata = {
... | shadcn-ui/ui/apps/www/app/(app)/examples/authentication/page.tsx | {
"file_path": "shadcn-ui/ui/apps/www/app/(app)/examples/authentication/page.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 1889
} | 106 |
"use client"
import * as React from "react"
import {
CaretSortIcon,
CheckIcon,
PlusCircledIcon,
} from "@radix-ui/react-icons"
import { cn } from "@/lib/utils"
import {
Avatar,
AvatarFallback,
AvatarImage,
} from "@/registry/new-york/ui/avatar"
import { Button } from "@/registry/new-york/ui/button"
import... | shadcn-ui/ui/apps/www/app/(app)/examples/dashboard/components/team-switcher.tsx | {
"file_path": "shadcn-ui/ui/apps/www/app/(app)/examples/dashboard/components/team-switcher.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 3516
} | 107 |
"use client"
import * as React from "react"
import { cn } from "@/lib/utils"
import {
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
} from "@/registry/new-york/ui/select"
interface AccountSwitcherProps {
isCollapsed: boolean
accounts: {
label: string
email: string
icon: Rea... | shadcn-ui/ui/apps/www/app/(app)/examples/mail/components/account-switcher.tsx | {
"file_path": "shadcn-ui/ui/apps/www/app/(app)/examples/mail/components/account-switcher.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 808
} | 108 |
"use client"
import * as React from "react"
import { SliderProps } from "@radix-ui/react-slider"
import {
HoverCard,
HoverCardContent,
HoverCardTrigger,
} from "@/registry/new-york/ui/hover-card"
import { Label } from "@/registry/new-york/ui/label"
import { Slider } from "@/registry/new-york/ui/slider"
interfa... | shadcn-ui/ui/apps/www/app/(app)/examples/playground/components/maxlength-selector.tsx | {
"file_path": "shadcn-ui/ui/apps/www/app/(app)/examples/playground/components/maxlength-selector.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 806
} | 109 |
"use client"
import { Cross2Icon } from "@radix-ui/react-icons"
import { Table } from "@tanstack/react-table"
import { Button } from "@/registry/new-york/ui/button"
import { Input } from "@/registry/new-york/ui/input"
import { DataTableViewOptions } from "@/app/(app)/examples/tasks/components/data-table-view-options"... | shadcn-ui/ui/apps/www/app/(app)/examples/tasks/components/data-table-toolbar.tsx | {
"file_path": "shadcn-ui/ui/apps/www/app/(app)/examples/tasks/components/data-table-toolbar.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 857
} | 110 |
import { Metadata } from "next"
import { notFound } from "next/navigation"
import { siteConfig } from "@/config/site"
import { getAllBlockIds, getBlock } from "@/lib/blocks"
import { absoluteUrl, cn } from "@/lib/utils"
import { BlockChunk } from "@/components/block-chunk"
import { BlockWrapper } from "@/components/bl... | shadcn-ui/ui/apps/www/app/(blocks)/blocks/[style]/[name]/page.tsx | {
"file_path": "shadcn-ui/ui/apps/www/app/(blocks)/blocks/[style]/[name]/page.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 1089
} | 111 |
"use client"
import Link from "next/link"
import { usePathname } from "next/navigation"
import { cn } from "@/lib/utils"
import { ScrollArea, ScrollBar } from "@/registry/new-york/ui/scroll-area"
const links = [
{
name: "Area Chart",
href: "/charts#area-chart",
},
{
name: "Bar Chart",
href: "/c... | shadcn-ui/ui/apps/www/components/charts-nav.tsx | {
"file_path": "shadcn-ui/ui/apps/www/components/charts-nav.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 739
} | 112 |
// @ts-nocheck
"use client"
import * as React from "react"
import Image from "next/image"
import Link from "next/link"
import { useMDXComponent } from "next-contentlayer2/hooks"
import { NpmCommands } from "types/unist"
import { Event } from "@/lib/events"
import { cn } from "@/lib/utils"
import { useConfig } from "@... | shadcn-ui/ui/apps/www/components/mdx-components.tsx | {
"file_path": "shadcn-ui/ui/apps/www/components/mdx-components.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 4153
} | 113 |
"use client"
import * as React from "react"
import { useSelectedLayoutSegment } from "next/navigation"
import { useConfig } from "@/hooks/use-config"
export function ThemeSwitcher() {
const [config] = useConfig()
const segment = useSelectedLayoutSegment()
React.useEffect(() => {
document.body.classList.fo... | shadcn-ui/ui/apps/www/components/theme-switcher.tsx | {
"file_path": "shadcn-ui/ui/apps/www/components/theme-switcher.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 233
} | 114 |
import { useAtom } from "jotai"
import { atomWithStorage } from "jotai/utils"
import { ColorFormat } from "@/lib/colors"
import { useMounted } from "@/hooks/use-mounted"
type Config = {
format: ColorFormat
}
const colorsAtom = atomWithStorage<Config>("colors", {
format: "hsl",
})
export function useColors() {
... | shadcn-ui/ui/apps/www/hooks/use-colors.ts | {
"file_path": "shadcn-ui/ui/apps/www/hooks/use-colors.ts",
"repo_id": "shadcn-ui/ui",
"token_count": 191
} | 115 |
import fs from "fs"
import path from "path"
import { UnistNode, UnistTree } from "types/unist"
import { u } from "unist-builder"
import { visit } from "unist-util-visit"
import { Index } from "../__registry__"
import { styles } from "../registry/registry-styles"
export function rehypeComponent() {
return async (tre... | shadcn-ui/ui/apps/www/lib/rehype-component.ts | {
"file_path": "shadcn-ui/ui/apps/www/lib/rehype-component.ts",
"repo_id": "shadcn-ui/ui",
"token_count": 4647
} | 116 |
import Link from "next/link"
import {
Activity,
ArrowUpRight,
CircleUser,
CreditCard,
DollarSign,
Menu,
Package2,
Search,
Users,
} from "lucide-react"
import {
Avatar,
AvatarFallback,
AvatarImage,
} from "@/registry/default/ui/avatar"
import { Badge } from "@/registry/default/ui/badge"
import {... | shadcn-ui/ui/apps/www/registry/default/block/dashboard-01.tsx | {
"file_path": "shadcn-ui/ui/apps/www/registry/default/block/dashboard-01.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 10286
} | 117 |
import Image from "next/image"
import Link from "next/link"
import {
ChevronLeft,
ChevronRight,
Copy,
CreditCard,
File,
Home,
LineChart,
ListFilter,
MoreVertical,
Package,
Package2,
PanelLeft,
Search,
Settings,
ShoppingCart,
Truck,
Users2,
} from "lucide-react"
import { Badge } from "... | shadcn-ui/ui/apps/www/registry/default/block/dashboard-05.tsx | {
"file_path": "shadcn-ui/ui/apps/www/registry/default/block/dashboard-05.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 18960
} | 118 |
import {
BadgeCheck,
Bell,
ChevronsUpDown,
CreditCard,
LogOut,
} from "lucide-react"
import {
Avatar,
AvatarFallback,
AvatarImage,
} from "@/registry/default/ui/avatar"
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuGroup,
DropdownMenuItem,
DropdownMenuLabel,
DropdownMenuSeparator,... | shadcn-ui/ui/apps/www/registry/default/block/sidebar-01/components/nav-user.tsx | {
"file_path": "shadcn-ui/ui/apps/www/registry/default/block/sidebar-01/components/nav-user.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 1514
} | 119 |
import {
Breadcrumb,
BreadcrumbEllipsis,
BreadcrumbItem,
BreadcrumbLink,
BreadcrumbList,
BreadcrumbPage,
BreadcrumbSeparator,
} from "@/registry/default/ui/breadcrumb"
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuTrigger,
} from "@/registry/default/ui/dropdown-menu"
e... | shadcn-ui/ui/apps/www/registry/default/example/breadcrumb-demo.tsx | {
"file_path": "shadcn-ui/ui/apps/www/registry/default/example/breadcrumb-demo.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 705
} | 120 |
"use client"
import * as React from "react"
import { Calendar } from "@/registry/default/ui/calendar"
export default function CalendarDemo() {
const [date, setDate] = React.useState<Date | undefined>(new Date())
return (
<Calendar
mode="single"
selected={date}
onSelect={setDate}
clas... | shadcn-ui/ui/apps/www/registry/default/example/calendar-demo.tsx | {
"file_path": "shadcn-ui/ui/apps/www/registry/default/example/calendar-demo.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 133
} | 121 |
import { useTheme } from "next-themes"
import { Bar, BarChart, Line, LineChart, ResponsiveContainer } from "recharts"
import { useConfig } from "@/hooks/use-config"
import {
Card,
CardContent,
CardHeader,
CardTitle,
} from "@/registry/default/ui/card"
import { baseColors } from "@/registry/registry-base-colors... | shadcn-ui/ui/apps/www/registry/default/example/cards/stats.tsx | {
"file_path": "shadcn-ui/ui/apps/www/registry/default/example/cards/stats.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 2013
} | 122 |
"use client"
import { zodResolver } from "@hookform/resolvers/zod"
import { useForm } from "react-hook-form"
import { z } from "zod"
import { toast } from "@/registry/default/hooks/use-toast"
import { Button } from "@/registry/default/ui/button"
import { Checkbox } from "@/registry/default/ui/checkbox"
import {
For... | shadcn-ui/ui/apps/www/registry/default/example/checkbox-form-multiple.tsx | {
"file_path": "shadcn-ui/ui/apps/www/registry/default/example/checkbox-form-multiple.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 1934
} | 123 |
"use client"
import * as React from "react"
import { addDays, format } from "date-fns"
import { Calendar as CalendarIcon } from "lucide-react"
import { DateRange } from "react-day-picker"
import { cn } from "@/lib/utils"
import { Button } from "@/registry/default/ui/button"
import { Calendar } from "@/registry/defaul... | shadcn-ui/ui/apps/www/registry/default/example/date-picker-with-range.tsx | {
"file_path": "shadcn-ui/ui/apps/www/registry/default/example/date-picker-with-range.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 928
} | 124 |
import { REGEXP_ONLY_DIGITS_AND_CHARS } from "input-otp"
import {
InputOTP,
InputOTPGroup,
InputOTPSlot,
} from "@/registry/default/ui/input-otp"
export default function InputOTPPattern() {
return (
<InputOTP maxLength={6} pattern={REGEXP_ONLY_DIGITS_AND_CHARS}>
<InputOTPGroup>
<InputOTPSlot... | shadcn-ui/ui/apps/www/registry/default/example/input-otp-pattern.tsx | {
"file_path": "shadcn-ui/ui/apps/www/registry/default/example/input-otp-pattern.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 259
} | 125 |
import {
ResizableHandle,
ResizablePanel,
ResizablePanelGroup,
} from "@/registry/default/ui/resizable"
export default function ResizableDemo() {
return (
<ResizablePanelGroup
direction="horizontal"
className="min-h-[200px] max-w-md rounded-lg border md:min-w-[450px]"
>
<ResizablePane... | shadcn-ui/ui/apps/www/registry/default/example/resizable-handle.tsx | {
"file_path": "shadcn-ui/ui/apps/www/registry/default/example/resizable-handle.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 321
} | 126 |
import {
Table,
TableBody,
TableCaption,
TableCell,
TableFooter,
TableHead,
TableHeader,
TableRow,
} from "@/registry/default/ui/table"
const invoices = [
{
invoice: "INV001",
paymentStatus: "Paid",
totalAmount: "$250.00",
paymentMethod: "Credit Card",
},
{
invoice: "INV002",
... | shadcn-ui/ui/apps/www/registry/default/example/table-demo.tsx | {
"file_path": "shadcn-ui/ui/apps/www/registry/default/example/table-demo.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 924
} | 127 |
export default function TypographyInlineCode() {
return (
<code className="relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold">
@radix-ui/react-alert-dialog
</code>
)
}
| shadcn-ui/ui/apps/www/registry/default/example/typography-inline-code.tsx | {
"file_path": "shadcn-ui/ui/apps/www/registry/default/example/typography-inline-code.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 89
} | 128 |
"use client"
import {
Card,
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
} from "@/registry/new-york/ui/card"
import { Progress } from "@/registry/new-york/ui/progress"
export default function Component() {
return (
<Card x-chunk="dashboard-05-chunk-1">
<CardHeader classNam... | shadcn-ui/ui/apps/www/registry/new-york/block/dashboard-05-chunk-1.tsx | {
"file_path": "shadcn-ui/ui/apps/www/registry/new-york/block/dashboard-05-chunk-1.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 292
} | 129 |
import { ChevronRightIcon } from "@radix-ui/react-icons"
import { Button } from "@/registry/new-york/ui/button"
export default function ButtonIcon() {
return (
<Button variant="outline" size="icon">
<ChevronRightIcon className="h-4 w-4" />
</Button>
)
}
| shadcn-ui/ui/apps/www/registry/new-york/example/button-icon.tsx | {
"file_path": "shadcn-ui/ui/apps/www/registry/new-york/example/button-icon.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 102
} | 130 |
import { CardsActivityGoal } from "@/registry/new-york/example/cards/activity-goal"
import { CardsCalendar } from "@/registry/new-york/example/cards/calendar"
import { CardsChat } from "@/registry/new-york/example/cards/chat"
import { CardsCookieSettings } from "@/registry/new-york/example/cards/cookie-settings"
import... | shadcn-ui/ui/apps/www/registry/new-york/example/cards/index.tsx | {
"file_path": "shadcn-ui/ui/apps/www/registry/new-york/example/cards/index.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 1261
} | 131 |
"use client"
import * as React from "react"
import { Progress } from "@/registry/new-york/ui/progress"
export default function ProgressDemo() {
const [progress, setProgress] = React.useState(13)
React.useEffect(() => {
const timer = setTimeout(() => setProgress(66), 500)
return () => clearTimeout(timer)... | shadcn-ui/ui/apps/www/registry/new-york/example/progress-demo.tsx | {
"file_path": "shadcn-ui/ui/apps/www/registry/new-york/example/progress-demo.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 129
} | 132 |
"use client"
import * as React from "react"
import * as AccordionPrimitive from "@radix-ui/react-accordion"
import { ChevronDownIcon } from "@radix-ui/react-icons"
import { cn } from "@/lib/utils"
const Accordion = AccordionPrimitive.Root
const AccordionItem = React.forwardRef<
React.ElementRef<typeof AccordionPr... | shadcn-ui/ui/apps/www/registry/new-york/ui/accordion.tsx | {
"file_path": "shadcn-ui/ui/apps/www/registry/new-york/ui/accordion.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 705
} | 133 |
"use client"
import * as React from "react"
import {
CaretSortIcon,
CheckIcon,
ChevronDownIcon,
ChevronUpIcon,
} from "@radix-ui/react-icons"
import * as SelectPrimitive from "@radix-ui/react-select"
import { cn } from "@/lib/utils"
const Select = SelectPrimitive.Root
const SelectGroup = SelectPrimitive.Gro... | shadcn-ui/ui/apps/www/registry/new-york/ui/select.tsx | {
"file_path": "shadcn-ui/ui/apps/www/registry/new-york/ui/select.tsx",
"repo_id": "shadcn-ui/ui",
"token_count": 2056
} | 134 |
import { Registry } from "@/registry/schema"
export const blocks: Registry = [
{
name: "sidebar-01",
description:
"A collapsible sidebar with workspace switcher, main navigation, secondary navigation, project navigation, and user navigation.",
type: "registry:block",
registryDependencies: [
... | shadcn-ui/ui/apps/www/registry/registry-blocks.ts | {
"file_path": "shadcn-ui/ui/apps/www/registry/registry-blocks.ts",
"repo_id": "shadcn-ui/ui",
"token_count": 2530
} | 135 |
import { Icons } from "@/components/icons"
export interface NavItem {
title: string
href?: string
disabled?: boolean
external?: boolean
icon?: keyof typeof Icons
label?: string
}
export interface NavItemWithChildren extends NavItem {
items: NavItemWithChildren[]
}
export interface MainNavItem extends N... | shadcn-ui/ui/apps/www/types/nav.ts | {
"file_path": "shadcn-ui/ui/apps/www/types/nav.ts",
"repo_id": "shadcn-ui/ui",
"token_count": 106
} | 136 |
import { existsSync } from "fs"
import path from "path"
import {
Config,
RawConfig,
getConfig,
resolveConfigPaths,
} from "@/src/utils/get-config"
import fg from "fast-glob"
import fs, { pathExists } from "fs-extra"
import { loadConfig } from "tsconfig-paths"
// TODO: Add support for more frameworks.
// We'll ... | shadcn-ui/ui/packages/cli/src/utils/get-project-info.ts | {
"file_path": "shadcn-ui/ui/packages/cli/src/utils/get-project-info.ts",
"repo_id": "shadcn-ui/ui",
"token_count": 1806
} | 137 |
import path from "path"
import { expect, test } from "vitest"
import { getPackageManager } from "../../src/utils/get-package-manager"
test("get package manager", async () => {
expect(
await getPackageManager(path.resolve(__dirname, "../fixtures/project-yarn"))
).toBe("yarn")
expect(
await getPackageMan... | shadcn-ui/ui/packages/cli/test/utils/get-package-manager.test.ts | {
"file_path": "shadcn-ui/ui/packages/cli/test/utils/get-package-manager.test.ts",
"repo_id": "shadcn-ui/ui",
"token_count": 258
} | 138 |
import { highlighter } from "@/src/utils/highlighter"
import { logger } from "@/src/utils/logger"
import { z } from "zod"
export function handleError(error: unknown) {
logger.error(
`Something went wrong. Please check the error below for more details.`
)
logger.error(`If the problem persists, please open an ... | shadcn-ui/ui/packages/shadcn/src/utils/handle-error.ts | {
"file_path": "shadcn-ui/ui/packages/shadcn/src/utils/handle-error.ts",
"repo_id": "shadcn-ui/ui",
"token_count": 321
} | 139 |
import { Config } from "@/src/utils/get-config"
import { getPackageManager } from "@/src/utils/get-package-manager"
import { RegistryItem } from "@/src/utils/registry/schema"
import { spinner } from "@/src/utils/spinner"
import { execa } from "execa"
export async function updateDependencies(
dependencies: RegistryIt... | shadcn-ui/ui/packages/shadcn/src/utils/updaters/update-dependencies.ts | {
"file_path": "shadcn-ui/ui/packages/shadcn/src/utils/updaters/update-dependencies.ts",
"repo_id": "shadcn-ui/ui",
"token_count": 320
} | 140 |
// @ts-nocheck
import type { Config } from 'tailwindcss'
const config: Config = {
content: [
'./src/pages/**/*.{js,ts,jsx,tsx,mdx}',
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
'./src/app/**/*.{js,ts,jsx,tsx,mdx}'
],
theme: {
extend: {
backgroundImage: {
'gradient-radial': 'radial-... | shadcn-ui/ui/packages/shadcn/test/fixtures/frameworks/next-pages-src/tailwind.config.ts | {
"file_path": "shadcn-ui/ui/packages/shadcn/test/fixtures/frameworks/next-pages-src/tailwind.config.ts",
"repo_id": "shadcn-ui/ui",
"token_count": 246
} | 141 |
/**
* This is intended to be a basic starting point for linting in the Indie Stack.
* It relies on recommended configs out of the box for simplicity, but you can
* and should modify this configuration to best suit your team's needs.
*/
/** @type {import('eslint').Linter.Config} */
module.exports = {
root: true,
... | shadcn-ui/ui/packages/shadcn/test/fixtures/frameworks/remix-indie-stack/.eslintrc.js | {
"file_path": "shadcn-ui/ui/packages/shadcn/test/fixtures/frameworks/remix-indie-stack/.eslintrc.js",
"repo_id": "shadcn-ui/ui",
"token_count": 1586
} | 142 |
import { createCookieSessionStorage, redirect } from "@remix-run/node";
import invariant from "tiny-invariant";
import type { User } from "~/models/user.server";
import { getUserById } from "~/models/user.server";
invariant(process.env.SESSION_SECRET, "SESSION_SECRET must be set");
export const sessionStorage = crea... | shadcn-ui/ui/packages/shadcn/test/fixtures/frameworks/remix-indie-stack/app/session.server.ts | {
"file_path": "shadcn-ui/ui/packages/shadcn/test/fixtures/frameworks/remix-indie-stack/app/session.server.ts",
"repo_id": "shadcn-ui/ui",
"token_count": 806
} | 143 |
const { http, passthrough } = require("msw");
const { setupServer } = require("msw/node");
// put one-off handlers that don't really need an entire file to themselves here
const miscHandlers = [
http.post(`${process.env.REMIX_DEV_HTTP_ORIGIN}/ping`, () => passthrough()),
];
const server = setupServer(...miscHandler... | shadcn-ui/ui/packages/shadcn/test/fixtures/frameworks/remix-indie-stack/mocks/index.js | {
"file_path": "shadcn-ui/ui/packages/shadcn/test/fixtures/frameworks/remix-indie-stack/mocks/index.js",
"repo_id": "shadcn-ui/ui",
"token_count": 162
} | 144 |
import { installGlobals } from "@remix-run/node";
import "@testing-library/jest-dom/vitest";
installGlobals();
| shadcn-ui/ui/packages/shadcn/test/fixtures/frameworks/remix-indie-stack/test/setup-test-env.ts | {
"file_path": "shadcn-ui/ui/packages/shadcn/test/fixtures/frameworks/remix-indie-stack/test/setup-test-env.ts",
"repo_id": "shadcn-ui/ui",
"token_count": 40
} | 145 |
const config = {
plugins: {
tailwindcss: {},
},
};
module.exports = config;
| shadcn-ui/ui/packages/shadcn/test/fixtures/frameworks/t3-app/postcss.config.cjs | {
"file_path": "shadcn-ui/ui/packages/shadcn/test/fixtures/frameworks/t3-app/postcss.config.cjs",
"repo_id": "shadcn-ui/ui",
"token_count": 34
} | 146 |
import { type Config } from "tailwindcss";
export default {
content: ["./src/**/*.{js,ts,jsx,tsx}"],
theme: {
extend: {},
},
plugins: [],
} satisfies Config;
| shadcn-ui/ui/packages/shadcn/test/fixtures/frameworks/t3-pages/tailwind.config.ts | {
"file_path": "shadcn-ui/ui/packages/shadcn/test/fixtures/frameworks/t3-pages/tailwind.config.ts",
"repo_id": "shadcn-ui/ui",
"token_count": 67
} | 147 |
import path from "path"
import { expect, test } from "vitest"
import { getConfig } from "../../src/utils/get-config"
import { getItemTargetPath } from "../../src/utils/registry"
test("get item target path", async () => {
// Full config.
let appDir = path.resolve(__dirname, "../fixtures/config-full")
expect(
... | shadcn-ui/ui/packages/shadcn/test/utils/get-item-target-path.test.ts | {
"file_path": "shadcn-ui/ui/packages/shadcn/test/utils/get-item-target-path.test.ts",
"repo_id": "shadcn-ui/ui",
"token_count": 445
} | 148 |
import tsconfigPaths from "vite-tsconfig-paths"
import { configDefaults, defineConfig } from "vitest/config"
export default defineConfig({
test: {
exclude: [
...configDefaults.exclude,
"**/node_modules/**",
"**/fixtures/**",
],
},
plugins: [tsconfigPaths()],
})
| shadcn-ui/ui/vitest.config.ts | {
"file_path": "shadcn-ui/ui/vitest.config.ts",
"repo_id": "shadcn-ui/ui",
"token_count": 116
} | 149 |
'use client'
import { useState, useEffect } from 'react'
import { ScrollArea } from "@/components/ui/scroll-area"
import { Menu, FileText, MessageSquare, LayoutDashboard, Palette, Book, Grid, Rocket, ShoppingCart, Mail, Box, Briefcase, Zap, Camera, BookOpen, List, Clock, Quote, ChevronRight, StickyNoteIcon, PaintBuck... | DarkInventor/easy-ui/app/component/page.tsx | {
"file_path": "DarkInventor/easy-ui/app/component/page.tsx",
"repo_id": "DarkInventor/easy-ui",
"token_count": 2423
} | 0 |
'use client'
import { DiscussionEmbed } from 'disqus-react'
interface DisqusCommentsProps {
url: string
identifier: string
title: string
}
export default function DisqusComments({ url, identifier, title }: DisqusCommentsProps) {
return (
<DiscussionEmbed
shortname="your-disqus-shortname"
conf... | DarkInventor/easy-ui/components/DisqusComments.tsx | {
"file_path": "DarkInventor/easy-ui/components/DisqusComments.tsx",
"repo_id": "DarkInventor/easy-ui",
"token_count": 159
} | 1 |
"use client";
import { cn } from "@/lib/utils";
import { motion } from "framer-motion";
import { RefObject, useEffect, useId, useState } from "react";
export interface AnimatedBeamProps {
className?: string;
containerRef: RefObject<HTMLElement>; // Container ref
fromRef: RefObject<HTMLElement>;
toRef: RefObje... | DarkInventor/easy-ui/components/magicui/animated-beam.tsx | {
"file_path": "DarkInventor/easy-ui/components/magicui/animated-beam.tsx",
"repo_id": "DarkInventor/easy-ui",
"token_count": 2297
} | 2 |
import Link from "next/link"
import { ChevronRightIcon } from "@radix-ui/react-icons"
import Marquee from "./magicui/marquee"
export interface ShowcaseCardProps {
title: string
image: string
href: string
affiliation?: string
}
export function ShowcaseCard({
title,
image,
href,
affiliation,
}: Showcase... | DarkInventor/easy-ui/components/showcase.tsx | {
"file_path": "DarkInventor/easy-ui/components/showcase.tsx",
"repo_id": "DarkInventor/easy-ui",
"token_count": 1835
} | 3 |
<svg width="162" height="162" viewBox="0 0 162 162" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M119.928 72.36C104.7 77.3234 94.0024 87.3581 89.4061 103.173C84.3748 87.4907 73.4039 77.7557 58.0449 73.2142C73.2732 68.2544 83.9705 58.2157 88.5675 42.3992C93.5982 58.082... | DarkInventor/easy-ui/public/star-dark.svg | {
"file_path": "DarkInventor/easy-ui/public/star-dark.svg",
"repo_id": "DarkInventor/easy-ui",
"token_count": 184
} | 4 |
import Providers from "@/components/providers";
import { Toaster } from "@/components/ui/sonner";
import "@/styles/globals.css";
import type { Metadata } from "next";
import { siteConfig } from "@/config/site";
import { Analytics } from "@vercel/analytics/react";
import { fontSans, fontHeading } from "@/lib/fonts";
c... | alifarooq9/rapidlaunch/apps/www/src/app/layout.tsx | {
"file_path": "alifarooq9/rapidlaunch/apps/www/src/app/layout.tsx",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 900
} | 5 |
interface NavItem {
label: string;
href: string;
disabled?: boolean;
}
interface NavConfig {
items: NavItem[];
}
export const navConfig: NavConfig = {
items: [
{
label: "SaaS StarterKit",
href: "/saas-starterkit",
disabled: true,
},
{
... | alifarooq9/rapidlaunch/apps/www/src/config/nav.ts | {
"file_path": "alifarooq9/rapidlaunch/apps/www/src/config/nav.ts",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 341
} | 6 |
const config = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
};
module.exports = config;
| alifarooq9/rapidlaunch/starterkits/saas/postcss.config.cjs | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/postcss.config.cjs",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 45
} | 7 |
"use client";
import { Button } from "@/components/ui/button";
import {
cancelPlan,
pausePlan,
resumePlan,
} from "@/server/actions/subscription/mutations";
import { useMutation } from "@tanstack/react-query";
import { useRouter } from "next/navigation";
import { toast } from "sonner";
import { useAwaitabl... | alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/(user)/org/billing/_components/cancel-pause-resume-btns.tsx | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/(user)/org/billing/_components/cancel-pause-resume-btns.tsx",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 1636
} | 8 |
import { AppPageLoading } from "@/app/(app)/_components/page-loading";
import { Skeleton } from "@/components/ui/skeleton";
import { orgMembersInvitePageConfig } from "@/app/(app)/(user)/org/members/invite/_constants/page-config";
export default function InviteMembersLoading() {
return (
<AppPageLoading
... | alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/(user)/org/members/invite/loading.tsx | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/(user)/org/members/invite/loading.tsx",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 267
} | 9 |
import { AppPageShell } from "@/app/(app)/_components/page-shell";
import { UserNameForm } from "@/app/(app)/(user)/profile/settings/_components/user-name-form";
import { UserImageForm } from "@/app/(app)/(user)/profile/settings/_components/user-image-form";
import { UserVerifyForm } from "@/app/(app)/(user)/profile/se... | alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/(user)/profile/settings/page.tsx | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/(user)/profile/settings/page.tsx",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 544
} | 10 |
import React from "react";
import { AppPageShell } from "@/app/(app)/_components/page-shell";
type AppPageLoadingProps = {
title: string;
description: string;
children: React.ReactNode;
};
export function AppPageLoading({
title,
description,
children,
}: AppPageLoadingProps) {
return (
... | alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/_components/page-loading.tsx | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/_components/page-loading.tsx",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 178
} | 11 |
export const adminFeedbackPageConfig = {
title: "Feedback List",
description: "List of feedbacks from users, manage them here.",
} as const;
| alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/admin/feedbacks/_constants/page-config.ts | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/admin/feedbacks/_constants/page-config.ts",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 44
} | 12 |
import { AppPageShell } from "@/app/(app)/_components/page-shell";
import { usersPageConfig } from "@/app/(app)/admin/users/_constants/page-config";
import { getPaginatedUsersQuery } from "@/server/actions/user/queries";
import { UsersTable } from "./_components/users-table";
import { z } from "zod";
import type { Sear... | alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/admin/users/page.tsx | {
"file_path": "alifarooq9/rapidlaunch/starterkits/saas/src/app/(app)/admin/users/page.tsx",
"repo_id": "alifarooq9/rapidlaunch",
"token_count": 457
} | 13 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.