Crustack
@crustack/form

Reusable components

Learn how to create reusable components with Crustack Form

Crustack Form enables you to create styled field components that can be shared and reused across multiple forms in your application.

Generate untyped form components

import {  } from '@crustack/form'

const { , , , ,  } = ()

Create a reusable input

export function (: { : string }) {
  const  = ()

  return (
    <>
      <>{.}</>
      <>
        <
          ={.}
          ={() => .(..)}
          ={() => .(true)}
        />
      </>
      < />
    </>
  )
}

On this page