@crossed/primitive
TypeScript icon, indicating that this package has built-in type declarations

1.8.0 • Public • Published

@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

Package Sidebar

Install

npm i @crossed/primitive

Weekly Downloads

196

Version

1.8.0

License

none

Unpacked Size

744 kB

Total Files

759

Last publish

Collaborators

  • paymium
  • lobor