Skip to content
项目

关于

UI Layouts 不只是一个库,而是一套完整的前端工具集:提供组件、特效、设计工具和即用型模块,满足你更快构建现代界面的所有需求。

网站与应用

这些数字如何统计

实测星标增长

24小时
+3
7天
+20
15天
+27
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文
UI-Layout - Design That Really Makes Sense

UI-LAYOUTs is an open-source component library that makes easier for developers and designers to build websites. It's focused on creative designs. I love to create comopnent that really matter or need your site and I belive in future I'll bring more as i kept bringing more just support me

Installation

You must install tailwindcss. As most of our components use framer-motion install it too.

npm install motion clsx tailwind-merge

Must Add it in the utils.ts:

import { type ClassValue, clsx } from 'clsx'
import { twMerge } from 'tailwind-merge'

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

use this hooks for mediaQueries:

import { useEffect, useState } from 'react'

export function useMediaQuery(query: string) {
  const [value, setValue] = useState(false)

  useEffect(() => {
    function onChange(event: MediaQueryListEvent) {
      setValue(event.matches)
    }

    const result = matchMedia(query)
    result.addEventListener('change', onChange)
    setValue(result.matches)

    return () => result.removeEventListener('change', onChange)
  }, [query])

  return value
}

Most Used Components

Visit all the components.

Labs

Visit Labs to explore more experiments and ideas.

👤 Author (Naymur)



Vercel OSS Program

Be A Sponsor

naymur-uilayout

探索相关项目

加载中…