# Dojo NG > Dojo NG is a framework-agnostic library of `dj-*` web components (custom elements built on Lit), themed with `--dj-*` CSS custom properties and published on npm under `@dojo-ng/*` (BSD-3-Clause). The same components work from React, Vue, Angular, and Svelte, or from plain HTML with no framework. Each package is a plain ES module. Rules that agents most often get wrong: - **Importing a package registers its tag.** `import "@dojo-ng/select";` defines ``. You do not call `customElements.define` yourself. Import before the first render. - **Set arrays and objects as DOM properties, not attributes.** `el.options = [...]` works. `options='[...]'` in HTML does not, because an attribute only carries a string. In React 19, `options={plans}` sets the property. In Vue, use `:options.prop="plans"`. In Angular, use `[options]="plans"`. - **Attributes use kebab-case names.** Write `helper-text`, not `helperText`. HTML lowercases attribute names, so a camelCase attribute is silently ignored. - **Tell your framework that `dj-*` tags are custom elements.** In Vue, set `compilerOptions.isCustomElement: (tag) => tag.startsWith("dj-")` in the Vue plugin options. In Angular, add `CUSTOM_ELEMENTS_SCHEMA` to each component that uses a `dj-*` tag. In React with TypeScript, declare the `dj-*` tags once in `JSX.IntrinsicElements`. The framework pages below show each one. - **Listen for plain DOM events.** Components fire standard events such as `change` and `click`, and a few `dj-*` custom events such as `dj-close`. In React, `onChange` works for `change`, and a custom event is `on` plus its exact name, such as `ondj-close={...}`. In Vue, use `@dj-close`. In Angular, use `(dj-close)`. - **Theme with `--dj-*` tokens.** Load `@dojo-ng/theme/theme.css` once per page, set `data-dj-theme` on `` to `light`, `dark`, or `high-contrast`, and override `--dj-*` custom properties on any ancestor. Do not reach into shadow DOM. Style exposed parts with `::part()`. Size a component through its tokens, such as `--dj-chart-height`, not by constraining a wrapper. - **Form controls are form-associated.** They use `ElementInternals`, so inside a native `
` each control submits under its `name` and you read values with `new FormData(form)`. Do not add hidden inputs or `formdata` event listeners. For Safari below 16.4, load `element-internals-polyfill` before the components. ## Guides - [Getting started](https://dojo-ng.com/docs/getting-started/index.html.md): Install Dojo NG and render your first dj-* component in React, Vue, Angular, Svelte, or plain HTML. - [Concepts](https://dojo-ng.com/docs/concepts/index.html.md): The model behind every dj-* component: custom elements, Shadow DOM, --dj-* token theming, and plain ES modules loaded through an import map. - [Theming](https://dojo-ng.com/docs/theming/index.html.md): Re-skin every dj-* component with --dj-* design tokens: light, dark, and high-contrast themes, brand overrides, scoped themes, ::part(), and validation states. - [Forms & validation](https://dojo-ng.com/docs/forms/index.html.md): Put dj-* form controls in a native form or dj-form: what each control submits, required and other built-in rules, custom and server-side errors, when errors show, and how to style them. - [Choosing a select](https://dojo-ng.com/docs/choosing-a-select/index.html.md): Which Dojo NG control to use for picking from a list: native-select, select, select multiple, typeahead, chip-typeahead, or search-box. Long lists, multiple values, and options loaded from a server. - [Snackbar or toast?](https://dojo-ng.com/docs/snackbar-or-toast/index.html.md): When to use dj-snackbar and when to use toast() from @dojo-ng/toast: one message you place yourself, or messages raised from anywhere with a queue, Undo, and promise toasts. - [Keyboard shortcuts and commands](https://dojo-ng.com/docs/keyboard-shortcuts-and-commands/index.html.md): Register app actions with keyboard shortcuts in @dojo-ng/commands, and let people search and run them from dj-command-palette. Scopes, sequences, conflicts, and the shortcut help view. - [Writing plugins](https://dojo-ng.com/docs/plugins/index.html.md): Extend dj-data-grid, dj-rich-text, and dj-chart with your own plugins: plain objects built with defineDataGridPlugin, defineRichTextPlugin, and defineChartPlugin, through public hooks the core does not special-case. - [Framework runtime](https://dojo-ng.com/docs/framework/index.html.md): A small virtual DOM renderer. It sets arrays and objects on custom elements as properties, and `on*` props listen for any event, `dj-*` events included. ## Frameworks - [React](https://dojo-ng.com/docs/react/index.html.md): Use Dojo NG components in React 19: register them before the first render, pass arrays and objects as properties, listen with ondj-* props, and type the tags in TypeScript. - [Vue](https://dojo-ng.com/docs/vue/index.html.md): Use Dojo NG components in Vue 3: mark dj-* tags as custom elements, bind arrays and objects with .prop, listen with @dj-*, and use v-model on text inputs. - [Angular](https://dojo-ng.com/docs/angular/index.html.md): Use Dojo NG components in Angular: add CUSTOM_ELEMENTS_SCHEMA, bind properties with [name] and events with (dj-*), and use ngModel or reactive forms with ngDefaultControl. - [Svelte](https://dojo-ng.com/docs/svelte/index.html.md): Use Dojo NG components in Svelte 5: import them once, pass arrays and objects as props, listen with ondj-* attributes, and keep state with $state instead of bind:value. - [Plain HTML](https://dojo-ng.com/docs/html/index.html.md): Use Dojo NG components with no framework: load them from a CDN with an import map or from npm with a bundler, set arrays and objects from JavaScript, and listen with addEventListener. ## Reference - [API reference](https://dojo-ng.com/docs/api/index.html.md): The API of all 86 Dojo NG custom elements and 34 plugin and utility packages, generated from the components' source. ## API reference: Form controls - [``](https://dojo-ng.com/docs/api/dj-action-button/index.html.md): A button that inherits the surrounding theme rather than imposing its own. - [``](https://dojo-ng.com/docs/api/dj-button/index.html.md): The foundational button. - [``](https://dojo-ng.com/docs/api/dj-checkbox/index.html.md): A form-associated checkbox composing ``. - [``](https://dojo-ng.com/docs/api/dj-checkbox-group/index.html.md): Multi-select group from `options`; submits each checked value under `name`. - [``](https://dojo-ng.com/docs/api/dj-chip-typeahead/index.html.md): A multi-select typeahead: type to filter `options`, pick from a popup list, and each choice becomes a removable chip. - [``](https://dojo-ng.com/docs/api/dj-color-picker/index.html.md): An inline color picker. - [``](https://dojo-ng.com/docs/api/dj-constrained-input/index.html.md): A text input with a custom `validator` function: `(value) => string | undefined` returning an error message (or undefined when valid). - [``](https://dojo-ng.com/docs/api/dj-copy-button/index.html.md): An icon-only button that copies text to the clipboard and shows whether it worked. - [``](https://dojo-ng.com/docs/api/dj-date-input/index.html.md): An ISO (yyyy-mm-dd) date field: type it, or pick from a popup `` opened by the trailing button. - [``](https://dojo-ng.com/docs/api/dj-email-input/index.html.md): A text input defaulting to `type="email"` (native email validation). - [``](https://dojo-ng.com/docs/api/dj-file-input/index.html.md): A form-associated file selector with a button that opens the system file picker and a focusable drop zone. - [``](https://dojo-ng.com/docs/api/dj-floating-action-button/index.html.md): A circular (or extended/pill) action button, optionally fixed to a screen position. - [``](https://dojo-ng.com/docs/api/dj-form/index.html.md): A layout wrapper that gathers values from its named child controls and emits `dj-submit` with a `{ name: value }` object. - [``](https://dojo-ng.com/docs/api/dj-helper-text/index.html.md): Supporting text shown under a form control. - [``](https://dojo-ng.com/docs/api/dj-label/index.html.md): A form label. - [``](https://dojo-ng.com/docs/api/dj-native-select/index.html.md): A form-associated wrapper over a native `