Package Exports
- @tylertech/forge-extended
- @tylertech/forge-extended/dist/index.mjs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@tylertech/forge-extended) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Tyler Forge™ Extended
A library of prebuilt components implementing Tyler Forge™ design patterns and recipes.
These UI components are typically composed of multiple atomic components from the core @tylertech/forge
library, and are intended to encapsulate a larger pattern and/or design to help developers create user
interfaces more efficiently.
Strict design and accessibility are the main focus of these components, and they are intended to offer limited volatility.
Usage
To get started using this library you must install the Forge component library (if already installed, see version compatibility table below):
npm install @tylertech/forge @tylertech/forge-extendedThe core Forge library is a peer dependency of this extended library, and they are very tightly coupled and intended to always be used alongside each other.
Importing components
You can import components from the extended library like so:
import '@tylertech/forge-extended/quantity-field';This is a side-effect import, so you don't need to assign it to a variable. It will register the component with the custom element registry and make it available for use in your HTML.
You can also reference types from components modules like so:
import { type QuantityFieldElement } from '@tylertech/forge-extended/quantity-field';This is useful for strongly typing your custom elements in TypeScript.
Importing all components
If you want to import all components from the extended library, you can do so like this:
import '@tylertech/forge-extended';Important: This will import all components from the extended library, which may not be necessary and could increase your bundle size. It is recommended to only import the components you need individually.
Additionally, you should not mix the full library import with individual imports, as this may cause issues with tree-shaking, bundle size, and can lead to conflicts when the code is run in the browser to define custom elements.
Version compatibility
@tylertech/forge-extended |
@tylertech/forge |
|---|---|
^1.0.0 |
^3.0.0 |
Local Development
Install
npm installRun dev site
This will open the Storybook site that is used for local development.
npm startVite Dev
You can also run a basic HTML dev site using Vite for simple/quick testing.
npm run devBuild
This runs a local production build of the library.
npm run buildRun tests
Executes the unit test suite.
npm test