starwind-ui/starwind-ui
关于
为 Astro、React、Vue 和 Svelte 提供 55 个可跨框架使用的 UI 组件。以可自行掌控的源代码形式安装符合无障碍要求的 Tailwind CSS 组件,并由共享的框架无关 Runtime 提供支持。
网站与应用开发实测星标增长
- 24小时
- +2
- 7天
- +5
- 15天
- +10
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
Astro-first, framework-portable UI components you can own.
Starwind UI gives you accessible, Tailwind CSS components with Starwind/shadcn-style ergonomics, backed by a portable Runtime that powers Astro, React, Vue 3.5, and Svelte 5 adapters today.
Why Starwind?
- 🎯 Own Your Code — Styled components live in your project, where you can understand and customize them.
- ✨ Animated by Default — Smooth, polished animations out of the box with Tailwind CSS v4.
- ♿ Accessible — Keyboard navigable and screen reader friendly. Built with a11y in mind.
- 🚀 Portable Runtime — Shared DOM behavior with generated Astro, React, Vue 3.5, and Svelte 5 adapters.
- 🛠️ CLI-Powered — Add only what you need with a simple
npx starwind addcommand.
Looking for the main package? See starwind-ui/cli.
Get Started
Initialize an Astro or React project:
npx starwind@latest init
Then add the components you need:
npx starwind@latest add
Vue 3.5
Use Starwind in Vite Vue, Astro Vue, Nuxt 3 or 4, Laravel with Inertia Vue, or Quasar Vite SPA/SSR projects:
npx starwind@latest init --framework vue
Vue adapters use idiomatic v-model arguments, matching update:* events, and normal detailed
event listeners. The Styled Image component remains Astro-only. Report issues in the
Starwind UI issue tracker.
Svelte 5
Use Starwind in Vite with Svelte, SvelteKit, or Astro with Svelte:
npx starwind@latest init --framework svelte
Vue and Svelte provide the same 37 Primitive families and 55 portable Styled components as the other first-party adapters. The Styled Image component remains Astro-only. Starwind Pro setup works with Svelte.
Runtime Architecture
Starwind components use a framework adapter backed by the shared, framework-neutral Runtime.
flowchart TD
App["Your application"]
Components["Starwind components you own<br/>Tailwind CSS + framework markup"]
Adapter["Framework adapter<br/>Astro, React, Vue 3.5, or Svelte 5"]
Runtime["Starwind Runtime<br/>shared accessible behavior"]
Browser["Browser APIs and the DOM"]
App --> Components
Components --> Adapter
Adapter --> Runtime
Runtime --> Browser
See Portable Runtime for the current implementation details.
AI integration
Resources for AI:
Contributing
Please read the contributing guide.
License
Licensed under the MIT license.
探索相关项目
加载中…