@kurrent-ui/fields
Form field web components for the Kurrent design system.
The components are designed to be used in conjuction with
@kurrent-ui/forms to provide validation and data orchestration, but can be used independantly by directly listening to the
fieldchange events, and passing validation messages via the
message prop.
Install
Add to your project
yarn add @kurrent-ui/fields Also, include the peer dependencies:
yarn add @kurrent-ui/components @kurrent-ui/theme @kurrent-ui/utils
Usage within a stencil project
In your
globalScript file, add the imports:
// Add the core web components to the global pool
import '@kurrent-ui/components';
// Add the field web components to the global pool
import '@kurrent-ui/fields'; Then you can use the element anywhere in your JSX, html, templates etc.