revolist/revo-ui
关于
Low-weight framework-agnostic component library for analytics dashboards and business apps. Date & time pickers, date & time range, charts, multi/selects, AI chat, PDF viewer, and scheduling controls for React, Vue, Angular, and Svelte
网站与应用开发实测星标增长
- 24小时
- -7
- 7天
- -2
- 15天
- +22
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Open-source components for data-rich applications
Revo UI (@revolist/ui) provides date and time pickers, dropdowns, charts, editable
timelines, AI chat, a PDF viewer and form controls for data-rich applications.
Use React, Vue, Angular, Svelte, Preact or vanilla TypeScript. Customize the
components with theme tokens, presets and CSS parts.
Live components · Interactive overview · Framework guides · RevoGrid · Pro documentation
Get started
pnpm add @revolist/ui
For a quick start in vanilla TypeScript, add <div id="app"></div> to your page and render a button:
import { createFrameworkMount, uiComponents } from '@revolist/ui/framework';
const mount = createFrameworkMount(
document.querySelector<HTMLElement>('#app')!,
() => {},
);
mount.render(uiComponents.Button, {
children: 'Create report',
onClick: () => alert('Report created'),
});
// Call mount.destroy() when removing the view.
Customize components
Use JSON presets and CSS to set colors, radii, component options and motion. Your application owns state and event handlers. Preview and export presets in the customization workspace, or follow the themes and presets guide.
React, Vue, Angular and Svelte adapters automatically load their component styles. For extracted CSS, use the matching /unstyled entry and import shared styles once:
import '@revolist/ui/styles.css';
For smaller extracted stylesheets, use styles/base.css and only the required families. Direct Preact/native rendering also uses explicit CSS. See automatic/extracted styles, CSP configuration and bundle-size budgets.
For server-rendered applications, see the SSR and hydration guide for framework recipes, initial CSS delivery, fallbacks and CSP.
For browser use without a build step, see the JavaScript / CDN guide.
Framework support
The adapters share the same component implementations. For named Angular and Svelte exports in the source build, see the Angular and SvelteKit guides. Check the installed version for availability.
Guides: React · Vue · Angular · Svelte · Preact · Vanilla TypeScript.
| Framework | Integration |
|---|---|
Named components from @revolist/ui/react, with React state, children, and callbacks. |
|
Named components from @revolist/ui/vue, with events, slots, and v-model for controls with a declared model. |
|
Named standalone components from @revolist/ui/angular, with typed inputs, events and rvUiSlot templates. |
|
Named Svelte 5 components from @revolist/ui/svelte, with typed props, model bindings, callbacks and snippets. |
|
Components from @revolist/ui/preact, with Preact hooks and JSX. |
|
Mount components into a DOM element with createFrameworkMount from @revolist/ui/framework. |
For a narrow dependency graph, import the matching component entry, for example @revolist/ui/angular/svg-button or @revolist/ui/svelte/svg-button. Each exports SvgButton; /unstyled variants use application-managed CSS.
Use DateInput for segmented date entry with arrow keys. For calendar and time selection, use the shared picker controls. See the native input migration guide when replacing DateInput, TimeInput, or DateTimeInput.
Components
- Buttons — Actions, icon buttons, toggles, and button groups.
- Inputs and forms — Text, search, numbers, validation, and field layouts.
- Multi/selects, autocomplete — Single/multi-select, input autocomplete, optional tags and remote lookup.
- Resource selection — People and resource pickers, user images and avatars.
- Selection controls — Checkboxes, switches, radio buttons, and choice chips.
- Tabs and lists — Tabs, segmented controls, and selectable lists.
- Sliders — Single values and ranges with labels and value badges.
- Timeline — Draggable, resizable events with colors and tooltips.
- Calendars and dates — Calendars, date selection, ranges, and weekly planning.
- Time pickers — Time-only fields, business hours, seconds, and clock formats.
- Date and time fields — DateTimeField inputs and configurable date/time editors.
- Charts — Bar, line, and area charts with tooltips and range selection.
- Tooltip API and behavior — Placement, timing groups, controlled state, rich/async content, delegation, events, and imperative methods.
- Dialogs and tooltips — Dialogs, confirmations, popovers, and tooltips.
- Menus and toolbars — Dropdown menus, nested commands, and toolbar actions.
- Status and feedback — Badges, alerts, loading indicators, and empty states.
- Layout — Panels, resizable split views, and expandable sections.
- Pagination — Page navigation for tables and lists.
- Progress and rating — Progress bars, circular indicators, and star ratings.
- Activity messages — Updates with avatars, timestamps, and actions.
- AI assistant — Chat messages, prompts, suggestions, and task states.
- PDF viewer — PDF navigation, search, zoom, and download controls.
- Color — Choose a color from a palette or picker and apply shared semantic interface colors.
- Field configurators — Compose field libraries, selected-field lists, ordering, summaries, actions and drop feedback from shared pieces.
- Formatting controls — Typography choices, icon choices, inspector sections, preview comparisons and contextual filter badges.
Complete component reference
For individual component props and API details, see the complete component reference.
RevoGrid products
Build alongside RevoGrid, Grid Pro, Charts, Pivot, Gantt, Scheduler, and Kanban.
Licensing
Revo UI is MIT licensed. Anyone can use, modify, and distribute it, including in commercial projects.
Contributing
See CONTRIBUTING.md for setup, tests and pull requests. Follow the Code of Conduct and report vulnerabilities privately using SECURITY.md.
Develop from source
The library and gallery are in this repository. No private repository access is needed.
pnpm install --frozen-lockfile
pnpm dev
pnpm --filter @revolist/ui lint
pnpm --filter @revolist/ui test
pnpm build
pnpm --filter @revolist/ui pack:public
pnpm --filter @revolist/ui test:public
pnpm build:demo
Framework-independent date helpers are available from @revolist/ui/dates:
import {
addDays,
diffInCalendarDays,
formatCalendarDateDisplay,
isValidIsoDate,
startOfMonth,
} from '@revolist/ui/dates';
const to = '2026-11-16';
if (isValidIsoDate(to)) {
const from = addDays(to, -6);
const inclusiveDays = diffInCalendarDays(from, to) + 1; // 7
const monthStart = startOfMonth(to); // 2026-11-01
const label = formatCalendarDateDisplay(from, 'en-GB'); // 10 Nov 2026
}
Validate untrusted strings with isValidIsoDate before date arithmetic. It accepts
strict YYYY-MM-DD calendar dates and rejects impossible dates and timestamps.
addDays uses UTC arithmetic and preserves date-only versus datetime output;
diffInCalendarDays returns the signed day difference, so inclusive ranges add one.
formatCalendarDateDisplay accepts a locale and optional timezone; date-only
strings retain their civil date regardless of timezone. It returns undefined
for invalid values. The entry point also exports ISO types, parsing and
serialization helpers, subtractDays, endOfMonth, and compareIsoDates.
These utilities do not require a framework, DOM, or stylesheet.
Library source is in package/; the root manifest defines public exports.
internal/ contains date and chart utilities bundled into the distribution.
The gallery lives in src/. Both builds use vite.config.ts; library builds
select --mode library. The npm archive includes this README.
Package maintainers: UI publication and synchronized Pro releases.
探索相关项目
加载中…
