Skip to content
Proyectos

Acerca de

AnywhereUI is a collection of rich web components that includes framework bindings, created with StencilJS

Desarrollo web y de aplicaciones

Cómo se miden estas cifras

What you can do

  • Framework agnostic Web Components — use them in Angular, React, Vue or plain HTML
  • Rich components: dropdowns, listbox, multiselect, virtual scroller, tab view and more
  • Theming through CSS variables and shadow parts: 8 color themes, light and dark modes
  • Accessible, keyboard friendly and written in TypeScript

Crecimiento de estrellas medido

in 24h
0
in 7 days
Recopilando historial
in 15 days
Recopilando historial
in 1 month
Recopilando historial

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

AnywhereUI

npm version npm downloads License: MIT Tests

Rich Web Components. Any Framework.

AnywhereUI is a set of customizable Web Components built with Stencil, with thin bindings for Angular, React and Vue. Style it once with CSS variables and use it everywhere — no framework lock-in.

AnywhereUI showcase: landing page with live components, themes and framework bindings

Features

  • Framework agnostic Web Components — use them in Angular, React, Vue or plain HTML
  • Rich components: dropdowns, listbox, multiselect, virtual scroller, tab view and more
  • Theming through CSS variables and shadow parts: 8 color themes, light and dark modes
  • Accessible, keyboard friendly and written in TypeScript
  • Small bindings for Angular, React and Vue on top of the same core

Packages

Project Package Version Links
Core @anywhere-ui/core version README.md
Angular @anywhere-ui/angular version README.md
React @anywhere-ui/react version README.md
Vue @anywhere-ui/vue version README.md
Svelte @anywhere-ui/svelte version README.md

Quick start

Vanilla / any bundler

npm i @anywhere-ui/core
import { defineCustomElements } from "@anywhere-ui/core/loader";

defineCustomElements();
<any-button label="Hello" icon="fa-solid:hand"></any-button>

Angular

npm i @anywhere-ui/core @anywhere-ui/angular
import { NgModule } from "@angular/core";
import { AnywhereUiModule } from "@anywhere-ui/angular";

@NgModule({
  imports: [AnywhereUiModule.forRoot()],
})
export class AppModule {}
<any-input-text [(ngModel)]="value" placeholder="Type here"></any-input-text>

React

npm i @anywhere-ui/core @anywhere-ui/react
import { setupAnywhereUIReact, AnyButton } from "@anywhere-ui/react";

setupAnywhereUIReact();

export const App = () => <AnyButton label="Hello" />;

Vue

npm i @anywhere-ui/core @anywhere-ui/vue
import { createApp } from "vue";
import { AnywhereUIVue } from "@anywhere-ui/vue";

createApp(App).use(AnywhereUIVue).mount("#app");
<any-button label="Hello"></any-button>

Theming

Components consume the theme through CSS variables, so you can override just what you need:

:root {
  --primaryColor: #16a34a;
  --primaryDarkColor: #12823b;
  --primaryDarkerColor: #0f6b31;
  --primaryColorRGBValue: 22, 163, 74;
}

The showcase ships with 8 color themes (violet, purple and Bootstrap palettes, light and dark), surface presets, design themes (Material / Sharp / Soft) and typography styles. See the Theming page for the full token list, or the theme sources in packages/core/src/themes.

Components

Checkbox · Dropdown · InputSwitch · InputText · InputTextarea · InputNumber · Listbox · MultiSelect · RadioButton · Button · VirtualScroller · TabView · Badge · RippleEffect

Every component is documented with live examples, an API table, events, CSS custom properties and shadow parts:

Component documentation

Examples

Every binding has an interactive playground with live options and an event debug log under packages/examples: npm run example:react, example:vue, example:angular, example:svelte or example:vanilla.

The assembled multi-framework site is live at examples preview and examples production:

Vanilla · React · Vue · Angular · Svelte

Development

Requirements: Node.js >= 22.22.3 (the repository uses Node 26 via .nvmrc) and npm 11 workspaces.

npm install        # install all workspaces
npm start          # Stencil dev server + Sass watch on http://127.0.0.1:3333
npm run build      # production build of the core and the framework bindings
npm test           # unit tests (Vitest via @stencil/vitest)
npm run test:e2e   # browser tests (Playwright via @stencil/playwright)

The showcase app lives in packages/core (src/app, src/components/app-showcase), while the component sources and themes live in packages/core/src/components and packages/core/src/themes.

Contributing

Issues and pull requests are welcome. main is protected: create a branch, push it and open a PR. Please add tests for component changes and run npm test before opening the PR. For repository conventions and the release workflow, see AGENTS.md.

License

MIT

Explorar proyectos relacionados

Cargando…