
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@windrun-huaiin/third-ui
Advanced tools
Third-party integrated UI components library, including Clerk authentication, Fumadocs documentation, and main application components.
pnpm add @windrun-huaiin/third-ui
Your-project/
├── src/
│ └── app/
│ └── globals.css
├── node_modules/
│ ├── @windrun-huaiin/
│ │ ├── third-ui/
│ │ │ └── src/ # This is third-ui src
│ │ └── base-ui/
│ │ └── src/ # This is base-ui src
└── package.json
globals.css
file, you have to configure Tailwind CSS 4.x like this:@import 'tailwindcss';
@source "../node_modules/@windrun-huaiin/third-ui/src/**/*.{js,ts,jsx,tsx}";
@source "../node_modules/@windrun-huaiin/base-ui/src/**/*.{js,ts,jsx,tsx}";
@source "./src/**/*.{js,ts,jsx,tsx}";
/* Import styles */
@import '@windrun-huaiin/third-ui/styles/third-ui.css';
import { ClerkUser, CTA, TOC } from '@windrun-huaiin/third-ui';
// Only import Clerk related components
import { ClerkUser, ClerkOrganization } from '@windrun-huaiin/third-ui/clerk';
// Only import main application components
import { CTA, Features } from '@windrun-huaiin/third-ui/main';
// Only import Fumadocs components
import { TOC, FumaBannerSuit } from '@windrun-huaiin/third-ui/fuma';
// Clerk user component (need to pass in translations and configuration)
<ClerkUser
locale="zh"
clerkAuthInModal={true}
t={{ signIn: "Sign in" }}
t2={{ terms: "Terms of Service", privacy: "Privacy Policy" }}
/>
// Clerk organization component
<ClerkOrganization locale="zh" className="custom-class" />
// Main application components
<CTA />
<Features />
@/
alias internally, keep code clean@windrun-huaiin/base-ui
: Base UI components@windrun-huaiin/lib
: General utility library@clerk/nextjs
: Clerk authenticationfumadocs-core
, fumadocs-ui
: Fumadocs documentationappConfig
dependencies, and configuration is passed through propsanimate-cta-gradient-wave
)ClerkProviderClient
- Clerk authentication providerClerkUser
- User button componentClerkOrganization
- Organization switcher componentCTA
- Call-to-Action componentFeatures
- Feature showcase componentFooter
- Footer componentGallery
- Image gallery componentGoToTop
- Go to top buttonSEOContent
- SEO content componentTips
- Tip componentgetMDXComponents
- MDX component configuration functioncreateMDXComponents
- MDX component factory functionTocFooter
- Table of contents footer componentFumaBannerSuit
- Fumadocs banner componentMermaid
- Flowchart componentImageZoom
- Image zoom componentTrophyCard
- Trophy card componentImageGrid
- Image grid componentZiaCard
- Zia card componentGradientButton
- Gradient button componentimport { ClerkProviderClient, ClerkUser } from '@windrun-huaiin/third-ui/clerk';
// Use in layout.tsx
<ClerkProviderClient
signInUrl="/sign-in"
signUpUrl="/sign-up"
waitlistUrl="/waitlist"
>
{children}
</ClerkProviderClient>
// Use in navigation bar
<ClerkUser clerkAuthInModal={true} />
import { CTA, Features, Footer } from '@windrun-huaiin/third-ui/main';
// Use various page components
<Features />
<CTA />
<Footer />
import { createMDXComponents, TocFooter } from '@windrun-huaiin/third-ui/fuma';
// Create pre-configured MDX components
const getMDXComponents = createMDXComponents({
watermark: {
enabled: true,
text: "Your Watermark"
},
githubBaseUrl: "https://github.com/your-org/your-repo/edit/main/"
});
// Use in page
const MDX = page.data.body;
<MDX components={getMDXComponents()} />
// Use TocFooter
<TocFooter
lastModified={page.data.date}
showCopy={true}
editPath="src/docs/your-file.mdx"
githubBaseUrl="https://github.com/your-org/your-repo/edit/main/"
/>
In MDX file:
<!-- Mermaid chart, watermark automatically applied -->
<Mermaid
chart="graph TD; A-->B"
title="My Diagram"
/>
<!-- Image grid, CDN URL automatically applied -->
<ImageGrid
type="url"
images={["image1.webp", "image2.webp"]}
altPrefix="example"
/>
<!-- Image zoom, placeholder image automatically applied -->
<ImageZoom src="/some-image.jpg" alt="Example" />
All configuration parameters will be automatically obtained from the global configuration, and no need to specify them in each use.
FAQs
Third-party integrated UI components for windrun-huaiin projects
The npm package @windrun-huaiin/third-ui receives a total of 430 weekly downloads. As such, @windrun-huaiin/third-ui popularity was classified as not popular.
We found that @windrun-huaiin/third-ui 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.