fysk-provider
fysk/fysk-providerFreeComponent
Global provider for Fysk components.
Install it
npx shadcn@latest add https://fysk.dev/r/fysk-provider.jsonSource
1"use client"2import * as React from "react"3import { Check, AlertCircle, AlertTriangle, Info, ChevronDown, ChevronUp, ChevronLeft, ChevronRight, ChevronsLeft, ChevronsRight, MoreHorizontal, Search, Circle, Minus, PanelLeft, X, Loader2 } from "lucide-react"4import { motion, AnimatePresence } from "framer-motion"56export type FyskIconPosition = "start" | "end"78export interface FyskIcons {9 loading?: React.ReactNode10 success?: React.ReactNode11 error?: React.ReactNode12 warning?: React.ReactNode13 info?: React.ReactNode,14 chevronDown?: React.ReactNode,15 chevronUp?: React.ReactNode,16 chevronLeft?: React.ReactNode,17 chevronRight?: React.ReactNode,18 chevronsLeft?: React.ReactNode,19 chevronsRight?: React.ReactNode,20 moreHorizontal?: React.ReactNode,21 search?: React.ReactNode,22 circle?: React.ReactNode,23 minus?: React.ReactNode,24 panelLeft?: React.ReactNode,25 close?: React.ReactNode,26}2728// --- Animation Configuration ---2930/**31 * Easing types based on "The Easing Blueprint"32 * @see https://animations.dev/learn/animation-theory/the-easing-blueprint33 *34 * - easeOut: Best for enter animations (responsive feel)35 * - easeInOut: Best for layout/morphing (natural acceleration/deceleration)36 * - easeIn: Rarely used (feels sluggish)37 * - linear: Only for constant animations (marquees, progress)38 */39export type FyskEasing = "easeOut" | "easeInOut" | "easeIn" | "linear" | number[]4041/**42 * Duration presets in seconds43 */44export interface FyskDurations {45 /** Ultra-fast micro-interactions (50-100ms) */46 instant: number47 /** Quick feedback animations (100-150ms) */48 fast: number49 /** Standard UI transitions (200-250ms) */50 normal: number51 /** Deliberate, noticeable animations (300-400ms) */52 slow: number53 /** Layout/morphing animations (400-500ms) */54 layout: number55}5657/**58 * Easing presets for different animation contexts59 */60export interface FyskEasings {61 /** For elements entering the screen (dropdowns, modals, tooltips) */62 enter: FyskEasing63 /** For elements leaving the screen */64 exit: FyskEasing65 /** For elements morphing/changing size while on screen */66 layout: FyskEasing67 /** For hover/focus micro-interactions */68 hover: FyskEasing69 /** For constant animations (spinners, progress) */70 linear: FyskEasing71}7273/**74 * Animation effect configurations75 */76export interface FyskEffects {77// … truncated
What it pulls in
npm packages
Other registry items
Files it writes
More from fysk
All 18 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Avataravatar | fysk | Components | Free | 2 deps | |
| Badgebadge | fysk | Components | Free | 1 dep | |
| Buttonbutton | fysk | Components | Free | 2 deps | |
| Empty Stateempty | fysk | Components | Free | 2 deps | |
| Formform | fysk | Components | Free | 4 deps | |
| Inputinput | fysk | Components | Free | 1 dep | |
| Input OTPinput-otp | fysk | Components | Free | no deps | |
| Kbdkbd | fysk | Components | Free | 1 dep |
