1.7.0 • Published 29 days ago

@crossed/primitive v1.7.0

Weekly downloads
-
License
-
Repository
-
Last release
29 days ago

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