反应组件库
用 TypeScript 创建的 AI- slop 生成的 React 组件库( 我应该开火还是升迁我的代理? )
特征
- 企业级UI组件: 50+ 模块化组件,包括数据网格,图表,编辑器,导航,调度器,并形成输入.
- Parallax & Motion 套件 : 高性能 60小时
<Parallax>视图<Animate>,和苹果样式<ScrollPin>带有零配置的快手道具. 见 Parallax 文档。 。 。 . - 响应版式容器 : 弹性
<Container>支持全屏、半屏、弹性盒、CSS网格和对齐预设的组件。 见 集装箱文档。 。 。 . - 现代网站部分: 插件和游戏部分
HeroSection, (中文(简体) ),LogoCloud, (中文(简体) ),TestimonialsSection, (中文(简体) ),PricingSection, (中文(简体) ),FAQSection,以及CTASection。见 文档。 。 。 . - 完整类型脚本支持 : 与无害环境管理和共同JS捆绑一起发布的综合类型声明.
- 通用主题和黑暗模式 : 通过CSS自定义属性和"主题提供",本地光和暗模式出箱.
- 0 配置样式 : 包装独立
style.css反应灵敏,有主题的造型. - 可访问( WCAG Compliant) : 语义HTML结构,ARIA属性,键盘导航,和焦点管理.
安装
npm install @bloxinine/react-component-library
注:确保 react 财务报告和审定财务报表 react-dom (第18或19版)安装在您的项目中.
快速启动
1. 导入全局样式
导入应用程序条目文件中的组件库样式表(例如, main.tsx 或者说 App.tsx:
import '@bloxinine/react-component-library/style.css';
2. 围绕主题提供(可选但建议)
import React from 'react';
import { ThemeProvider, Button, Card } from '@bloxinine/react-component-library';
import '@bloxinine/react-component-library/style.css';
export function App() {
return (
<ThemeProvider defaultTheme="dark">
<Card title="Hello React Component Library">
<p>A modern component library built for enterprise productivity.</p>
<Button variant="primary" onClick={() => alert('Clicked!')}>
Get Started
</Button>
</Card>
</ThemeProvider>
);
}
文档
所有组件的综合指南、复制复制示例和TypeScript道具表格:
| 类别 | 指南 | 构成部分 |
|---|---|---|
| 📑 主目录 | 组件目录 | 完整字母顺序 A- Z 索引和快速启动设置 |
| 🌐 网站部分 | 网站部分套件 | 英雄科 BentoGrid、定价科、证词科、Stats科、FAQ科、CTA科、LogoCloud、脚部 |
| 📐 布局容器( C) | 集装箱指南 | <Container>, (中文(简体) ), <ContainerItem>,全Screen, 半Screen, 有弹性和网格对齐 |
| 🍪 Cookie 隐私( P) | Cookie 政策指南 | <CookieConsent>, (中文(简体) ), <CookiePolicyTable>, (中文(简体) ), <CookieSettingsButton> |
| 🚀 运动套件 | 参数和运动指南 | <Parallax>, (中文(简体) ), <Animate>, (中文(简体) ), <ScrollPin>, (中文(简体) ), useParallax, (中文(简体) ), ParallaxProvider |
| 🧱 核心先导 | 核心组成部分 | 按钮、输入、卡片、下拉、Avatar、进步栏、开关、Modal |
| 🧭 导航 | 导航组件 | Navbar, Appbar, Sidebar, Breadcrumb, 步入, Tabs, 菜单栏, 上下文Menu, 速度拨号, 呼叫器 |
| 📝 窗体输入( I) | 窗体输入( I) | TextBox, TextRea, NumbericTextBox, MaskedTextBox, 复选框, RadioButton, 滑动器, 评分, 彩色选取器, 日期选取器, 时间选取器, 日期选取器, 日期选取器, 日历, 签名, InPlaceEditor, WYSIWYGEditor, ComboBox, 自动完成器, 多选取器, 多选取 Colummbox, ListBox, SplitButton, Button Group, 进步按钮, Chip/Chiplist |
| 📊 数据图表( H) | 数据图表( H) | 表, ListView, TreeView, Timeline, GantChart, LineChart, BarChart, AreaChart, PieChart, DonutChart, ScoutterPlot, HeatMap, Sparkline, BulletChart, 通知Gauge, LinearGauge, 范围选择器, 条码/ QRCode |
| 💬 反馈和AI | 反馈、容器和AI | 对话框、 工具提示、 土司、 徽章、 斯宾纳、 斯凯勒通、 安通、 分块器、 工具栏、 英雄、 ChatUI、 AIassist View、 SmartTextrea、 SmartPasteButton |
参数和滚动动画
轻松地创建视觉惊艳的登陆页
参数
将任何组件或多层场景以 <Parallax> 内置 a <ParallaxProvider>数字 :
import React from 'react';
import { ParallaxProvider, Parallax, Card } from '@bloxinine/react-component-library';
export function ParallaxHero() {
return (
<ParallaxProvider>
<div style={{ position: 'relative', height: '400px', overflow: 'hidden' }}>
{/* Background layer moves slower */}
<Parallax speed={-0.2} rotate={[-10, 10]}>
<img src="/bg-shape.png" alt="Background" style={{ width: '100%', height: 'auto' }} />
</Parallax>
{/* Foreground card moves with depth */}
<Parallax speed={0.35} scale={[0.9, 1.1]}>
<Card title="Floating Feature Card">
<p>Parallax depth effects made effortless.</p>
</Card>
</Parallax>
</div>
</ParallaxProvider>
);
}
输入/ 滚动出时的动画
这个 <Animate> 组件触发动画, 当元素进出视图端口时 :
import React from 'react';
import { Animate, scroll, scrollOut } from '@bloxinine/react-component-library';
export function AnimatedFeatures() {
return (
<div>
{/* 1. Dual in/out prop syntax */}
<Animate when="scroll" animation="fadeIn" exitAnimation="fadeOut" duration={0.6}>
<div>Fades in when scrolled into view, fades out when leaving</div>
</Animate>
{/* 2. Rules array trigger syntax using typed constants */}
<Animate
triggers={[
{ when: scroll, animation: 'scaleIn', duration: 0.5 },
{ when: scrollOut, animation: 'scaleOut', duration: 0.5 }
]}
>
<div>Scales in on scroll enter, scales out on scroll exit</div>
</Animate>
</div>
);
}
// Supported animations:
// 'fadeIn', 'fadeOut', 'scaleIn', 'scaleOut', 'slideUp', 'slideDown',
// 'slideLeft', 'slideRight', 'zoomIn', 'zoomOut', 'flipIn', 'flipOut',
// 'bounceIn', 'rotateIn', 'rotateOut', 'blurIn', 'pulse', 'shake'
// (Also accepts space-separated aliases like "fade in", "scale out")
平按:平"灵枢"作平. )
将滚动时的视图端口插入到擦除3D模型,硬件制作或分步披露后再发布到下一节:
import React from 'react';
import { ScrollPin } from '@bloxinine/react-component-library';
export function ProductShowcase() {
return (
<ScrollPin
scrollDistance="300vh"
topOffset="60px"
pinHeight="calc(100vh - 80px)"
stepCount={3}
showProgressBar={true}
>
{({ progress, activeStep, isPinned, scrollToStep }) => (
<div style={{ textAlign: 'center', padding: '2rem' }}>
<h2>Interactive Showcase ({isPinned ? 'Locked' : 'Unlocked'})</h2>
<p>Active Step: {activeStep + 1} of 3 | Progress: {(progress * 100).toFixed(0)}%</p>
<button onClick={() => scrollToStep((activeStep + 1) % 3)}>
Next Step →
</button>
</div>
)}
</ScrollPin>
);
}
网站部分和版式
集成现代,反应快的登陆页 有高层次的路段原始和灵活的集装箱对接:
import React from 'react';
import { Container, LogoCloud, TestimonialsSection } from '@bloxinine/react-component-library';
export function LandingPage() {
return (
<Container display="flex" direction="vertical" gap="4rem">
{/* Infinite Seamless Logo Marquee */}
<LogoCloud
title="Trusted by engineering teams"
variant="marquee"
speedSeconds={25}
logos={[
{ name: 'AcmeCorp', icon: '⚡' },
{ name: 'VentureScale', icon: '🔺' },
{ name: 'NextWave', icon: '🌊' },
{ name: 'ApexCloud', icon: '☁️' }
]}
/>
{/* Infinite Seamless Testimonial Marquee */}
<TestimonialsSection
tag="Customer Stories"
title="Trusted by creators worldwide"
layout="marquee"
speedSeconds={35}
testimonials={[
{
quote: "This library completely changed our delivery velocity.",
author: "Sarah Lin",
role: "Head of Product",
company: "VentureScale",
rating: 5,
verified: true
},
{
quote: "Production-ready components with zero layout jitter.",
author: "David Chen",
role: "Staff Engineer",
company: "HyperCloud",
rating: 5,
verified: true
}
]}
/>
</Container>
);
}
深色模式( D)
该库通过CSS自定义属性可以完全主题化. 仅通过应用来切换光和暗模式 .dark-theme 或使用内置 ThemeProvider数字 :
:root {
--bg-page: #f8fafc;
--bg-surface: #ffffff;
--bg-subtle: #f1f5f9;
--text-main: #0f172a;
--text-muted: #64748b;
--border-main: #e2e8f0;
}
.dark-theme {
--bg-page: #0b0f17;
--bg-surface: #151d2c;
--bg-subtle: #1e293b;
--text-main: #f8fafc;
--text-muted: #94a3b8;
--border-main: #334155;
}
许可证
麻省理工学院 2026年