Package Exports
- @crossed/primitive
- @crossed/primitive/lib/commonjs/index.js
- @crossed/primitive/lib/module/index.js
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 (@crossed/primitive) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@Crossed/primitive
Introduction
@Crossed/primitive is here to give you the freedom to create hight end custom component without worrying about accessibility. Create function in @crossed/primitive already handle all this logic for you. Provide some component to our function and let the magic happen.
Installation
pnpm i @crossed/primitive
Getting Strated
All you need to do is import your desired create function from @crossed/primitive and use it with the appropriate arguments more details can be found for each create function on our documentation documentation
import { createLabel } from '@crossed/primitive';
const MyRoot = () => {
return (
//your desired Root component
)
}
const MyInput = () => {
return (
//your desired Input component
)
}
const MyLabelText = () => {
return (
//your desired text label component
)
}
const MyLabel = createLabel({MyRoot, MyInput, MyLabelText})
Contribution
Want to Contribute to our project ? Check our contribution guide line