
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
fanyucomponents
Advanced tools
✨ Fanyu Components 是一款以 純邏輯為核心、無樣式綁定 的 React 元件套件,專為自由度與擴充性設計。它提供了一些常見的 UI 元件及互動邏輯,並允許開發者完全控制樣式,適用於各種專案與 Design System 的建立。
✅ 無樣式綁定:所有元件都專注於功能邏輯,開發者可以完全掌控 UI 呈現,適用於各種樣式庫(如 Tailwind CSS、Styled Components、Emotion 等)。
✅ 高度可擴展性:支援 as props,讓你能靈活地使用不同的 HTML 元素或自定義元件,無需改動原有的邏輯。
✅ 支援常見交互邏輯:如冷卻時間按鈕、彈窗控制、外部連結安全處理等。
✅ 完整的型別定義:TypeScript 型別支持,讓開發過程更加順暢與安全。
✅ 小巧且高效:不含多餘的樣式或依賴,專注於功能,讓你的專案保持輕量。
npm install fanyucomponents
你可以自定義和擴展元件屬性,以便它們更適合你的需求:
import { AsComponentProps } from "fanyucomponents";
type CustomComponentProps<Component extends React.ElementType> =
AsComponentProps<Component, { customProp: string }>;
// 使用 as props 定義自定義組件
const CustomComponent = <Component extends React.ElementType>({
as,
customProp,
...props
}: CustomComponentProps<Component>) => {
const Component = as;
return <Component {...props}>{customProp}</Component>;
};
我們歡迎來自開發者社群的貢獻!如果您有任何想法或發現問題,請隨時提交 Issue,或是創建 Pull Request。
FAQs
一款以 純邏輯為核心、無樣式綁定 的 React 元件套件
We found that fanyucomponents demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.