mirror of
https://github.com/hanzoai/gui.git
synced 2026-10-25 02:31:41 +00:00
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]>
37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
---
|
|
title: Gui UI
|
|
description: React Native UI kit with copy-paste composable components
|
|
---
|
|
|
|
<IntroParagraph>
|
|
Gui UI is a complete suite of copy-paste composable components that render nicely on
|
|
both React Native and React web, in both styled and unstyled forms.
|
|
</IntroParagraph>
|
|
|
|
You can install each component separately, or all of them at once with:
|
|
|
|
```bash
|
|
yarn add hanzogui
|
|
```
|
|
|
|
## Setup
|
|
|
|
The package `hanzogui` is a superset of `@hanzogui/core`, so if you've already installed core you can change all the references to `hanzogui`.
|
|
|
|
You'll need to add a provider to the root of your app (unlike core, where that is optional), as it will set up the root portal for components like dialogs and popovers.
|
|
|
|
```tsx
|
|
import { createGui, GuiProvider, View } from '@hanzo/gui'
|
|
import { defaultConfig } from '@hanzogui/config/v5' // for quick config install this
|
|
|
|
const config = createGui(defaultConfig)
|
|
|
|
export default () => (
|
|
<GuiProvider config={config}>
|
|
<View />
|
|
</GuiProvider>
|
|
)
|
|
```
|
|
|
|
For a full configuration guide with `createGui`, check [the core configuration docs](/docs/core/configuration).
|