@formio/standard-template
v0.0.1
Published
A basic default template for Form.io forms.
Readme
@formio/standard-template
A Form.io template that provides a comprehensive set of style-free HTML markup templates for rendering Form.io components.
Installation
npm install @formio/standard-templateor
yarn add @formio/standard-templateUsage
import { standardTemplate } from '@formio/standard-template';
const template = standardTemplate('myDesignSystem', {
input: {
form: {
input: ['custom-class-1', 'custom-class-2']
}
}
});
Formio.use(template);API
standardTemplate(framework, classes?, templates?)
Creates a template configuration for the specified framework.
Parameters:
framework(string): The CSS framework or design system nameclasses(optional): Object defining CSS classes for componentstemplates(optional): Object containing custom template overrides
Returns:
An object containing:
framework: The framework nametemplates: Object with framework-specific template functions
templateUtils
Utility functions for working with templates.
Development
Build
yarn buildThis creates both CommonJS and ES Module builds in the lib/ directory.
License
MIT License - see LICENSE file for details
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Support
For issues and questions, please use the GitHub issue tracker.
