Files
zeekayandHanzo Dev 751ef5c778 rename the framework to @hanzo/gui and the loader to @hanzogui/loader
Both old names are owned by a different npm account (artemis-prime), so
publishing them returns 403 — which is how this surfaced: the 8.0.0 run
shipped @hanzogui/logo and @hanzogui/demos depending on [email protected], a
version that cannot be published and therefore does not exist. Those two
were uninstallable.

@hanzo/gui and @hanzogui/* are ours, so the framework now carries the name
it is imported by everywhere downstream, and the loader moves under the
scope we control.

The rewrite is limited to package references. `DEBUG?.startsWith('hanzogui')`
is a log-namespace filter and join(dir, 'hanzogui') is a path — rewriting
either would change behaviour, so both are untouched.

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-30 20:23:18 -07:00

69 lines
1.1 KiB
Plaintext

---
title: Form
description: A simple form component for native and web
name: form
component: Form
package: form
demoName: Form
---
<HeroContainer>
<FormsDemo />
</HeroContainer>
```tsx hero template=Forms
```
<Highlights
features={[
`Works on native and web.`,
`Outputs accessible forms.`,
`Works with every Gui prop.`,
]}
/>
## Installation
Form is already installed in `hanzogui`, or you can install it independently:
```bash
npm install @hanzogui/form
```
## Anatomy
```tsx
import { Form } from '@hanzo/gui' // or '@hanzogui/form'
export default () => (
<Form>
{/* ... */}
<Form.Trigger asChild>
<Button />
</Form.Trigger>
</Form>
)
```
## API Reference
### Form
<PropsTable
data={[
{
name: 'onSubmit',
type: '() => void',
required: true,
description: `Must use \`Form.Trigger\` to ensure \`onSubmit\` will be called.`,
},
]}
/>
### Form.Trigger
Wrap this around your submitting element to make the form submit. We recommend using `asChild` to a child element of your choosing for more control.
Accepts [Gui Props](/docs/intro/props).