@publicai-ux/form
v1.0.0
Published
This component can be used in both React applications and traditional HTML/JS projects.
Readme
Component16 Component
This component can be used in both React applications and traditional HTML/JS projects.
React Usage
import { Component16 } from '@publicai-ux/form/Component16';
import '@publicai-ux/form/styles.css';
function App() {
return (
<div>
<h1>My Application</h1>
<Component16 />
</div>
);
}HTML/JS Usage
<!DOCTYPE html>
<html>
<head>
<title>My Page</title>
<link rel="stylesheet" href="node_modules/@publicai-ux/form/styles.css">
</head>
<body>
<!-- Include the component HTML -->
<div data-component="component16">
<!-- Component will be inserted here -->
</div>
<!-- Initialize the component -->
<script type="module">
import { initComponents } from '@publicai-ux/form';
// Initialize all components
initComponents();
</script>
</body>
</html>