# uiwjs/react-login-page architecture

> Architecture diagram of the GitHub repository uiwjs/react-login-page, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/uiwjs/react-login-page
- Repository: https://github.com/uiwjs/react-login-page

## Overview

React Login Pages is a React component library for composing login and signup forms, accompanied by a collection of themed page templates and a documentation/example website. The typical usage path is a developer choosing a template or assembling core components; the page composition registers fields and controls, and the core provider and renderer support the resulting form UI. The graph includes core primitives, representative template families, and the documented preview flow. Source excerpts are partial, so unsampled template internals and website routes are not expanded beyond indexed or documented relationships.

Main entry points: [`core/src/index.tsx`](https://github.com/uiwjs/react-login-page/blob/main/core/src/index.tsx) (Login component API), [`website/src/comps/Preview.tsx`](https://github.com/uiwjs/react-login-page/blob/main/website/src/comps/Preview.tsx) (Markdown preview), [`core/src/store.tsx`](https://github.com/uiwjs/react-login-page/blob/main/core/src/store.tsx) (State provider), [`website/src/router.tsx`](https://github.com/uiwjs/react-login-page/blob/main/website/src/router.tsx) (Documentation routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_core["Core components"]
  node_library["Login component API<br/>[index.tsx]"]
  node_provider["State provider<br/>[store.tsx]"]
  node_container["Form container<br/>[Container.tsx]"]
  node_block["Composable block<br/>[Block.tsx]"]
  node_button["Form button<br/>[Button.tsx]"]
  node_input["Text input<br/>[Input.tsx]"]
  node_select["Select field<br/>[Select.tsx]"]
  node_textarea["Multiline field<br/>[Textarea.tsx]"]
  node_renderer["Form renderer<br/>[Render.tsx]"]
end

subgraph group_templates["Login templates"]
  node_base["Base login page<br/>[index.tsx]"]
  node_banner["Banner templates<br/>[index.tsx]"]
  node_standard["Standard templates<br/>[index.tsx]"]
  node_styled["Styled templates<br/>[index.tsx]"]
  node_split["Split panel template<br/>[index.tsx]"]
  node_login_signup["Login signup template<br/>[index.tsx]"]
end

subgraph group_site["Documentation site"]
  node_docs_router["Documentation routes<br/>[router.tsx]"]
  node_preview["Markdown preview<br/>[Preview.tsx]"]
  node_markdown_data["Markdown loader<br/>[useMdData.tsx]"]
  node_examples["Examples page<br/>[Examples.tsx]"]
  node_docs_layout["Docs layout<br/>[DocsLayout.tsx]"]
end

node_developer(("Application developer"))

node_developer -.->|"uses API"| node_library
node_library -->|"wraps in"| node_provider
node_library -->|"renders"| node_container
node_library -->|"exposes"| node_block
node_library -->|"exposes"| node_button
node_library -->|"exposes"| node_input
node_library -->|"exposes"| node_select
node_library -->|"exposes"| node_textarea
node_library -->|"exports"| node_renderer
node_block -->|"uses state"| node_provider
node_button -->|"uses state"| node_provider
node_base -->|"composes"| node_library
node_banner -->|"composes"| node_library
node_standard -->|"composes"| node_library
node_styled -->|"composes"| node_library
node_split -->|"composes"| node_library
node_login_signup -->|"composes"| node_library
node_docs_router -->|"routes to"| node_preview
node_docs_router -->|"routes through"| node_docs_layout
node_preview -->|"loads content"| node_markdown_data
node_preview -->|"uses navigation"| node_docs_layout

click node_library "https://github.com/uiwjs/react-login-page/blob/main/core/src/index.tsx"
click node_provider "https://github.com/uiwjs/react-login-page/blob/main/core/src/store.tsx"
click node_container "https://github.com/uiwjs/react-login-page/blob/main/core/src/Container.tsx"
click node_block "https://github.com/uiwjs/react-login-page/blob/main/core/src/Block.tsx"
click node_button "https://github.com/uiwjs/react-login-page/blob/main/core/src/Button.tsx"
click node_input "https://github.com/uiwjs/react-login-page/blob/main/core/src/Input.tsx"
click node_select "https://github.com/uiwjs/react-login-page/blob/main/core/src/Select.tsx"
click node_textarea "https://github.com/uiwjs/react-login-page/blob/main/core/src/Textarea.tsx"
click node_renderer "https://github.com/uiwjs/react-login-page/blob/main/core/src/Render.tsx"
click node_base "https://github.com/uiwjs/react-login-page/blob/main/pages/base/src/index.tsx"
click node_banner "https://github.com/uiwjs/react-login-page/blob/main/pages/page2/src/index.tsx"
click node_standard "https://github.com/uiwjs/react-login-page/blob/main/pages/page4/src/index.tsx"
click node_styled "https://github.com/uiwjs/react-login-page/blob/main/pages/page6/src/index.tsx"
click node_split "https://github.com/uiwjs/react-login-page/blob/main/pages/page8/src/index.tsx"
click node_login_signup "https://github.com/uiwjs/react-login-page/blob/main/pages/page10/src/index.tsx"
click node_docs_router "https://github.com/uiwjs/react-login-page/blob/main/website/src/router.tsx"
click node_preview "https://github.com/uiwjs/react-login-page/blob/main/website/src/comps/Preview.tsx"
click node_markdown_data "https://github.com/uiwjs/react-login-page/blob/main/website/src/comps/useMdData.tsx"
click node_examples "https://github.com/uiwjs/react-login-page/blob/main/website/src/pages/Examples.tsx"
click node_docs_layout "https://github.com/uiwjs/react-login-page/blob/main/website/src/comps/DocsLayout.tsx"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_library,node_provider,node_container,node_block,node_button,node_input,node_select,node_textarea,node_renderer toneBlue
class node_base,node_banner,node_standard,node_styled,node_split,node_login_signup toneAmber
class node_docs_router,node_preview,node_markdown_data,node_examples,node_docs_layout toneMint
class node_developer toneIndigo
```

## Components

### Core components

- [Login component API](https://github.com/uiwjs/react-login-page/blob/main/core/src/index.tsx): `core/src/index.tsx`
- [State provider](https://github.com/uiwjs/react-login-page/blob/main/core/src/store.tsx): `core/src/store.tsx`
- [Form container](https://github.com/uiwjs/react-login-page/blob/main/core/src/Container.tsx): `core/src/Container.tsx`
- [Composable block](https://github.com/uiwjs/react-login-page/blob/main/core/src/Block.tsx): `core/src/Block.tsx`
- [Form button](https://github.com/uiwjs/react-login-page/blob/main/core/src/Button.tsx): `core/src/Button.tsx`
- [Text input](https://github.com/uiwjs/react-login-page/blob/main/core/src/Input.tsx): `core/src/Input.tsx`
- [Select field](https://github.com/uiwjs/react-login-page/blob/main/core/src/Select.tsx): `core/src/Select.tsx`
- [Multiline field](https://github.com/uiwjs/react-login-page/blob/main/core/src/Textarea.tsx): `core/src/Textarea.tsx`
- [Form renderer](https://github.com/uiwjs/react-login-page/blob/main/core/src/Render.tsx): `core/src/Render.tsx`

### Login templates

- [Base login page](https://github.com/uiwjs/react-login-page/blob/main/pages/base/src/index.tsx): `pages/base/src/index.tsx`
- [Banner templates](https://github.com/uiwjs/react-login-page/blob/main/pages/page2/src/index.tsx): `pages/page2/src/index.tsx`
- [Standard templates](https://github.com/uiwjs/react-login-page/blob/main/pages/page4/src/index.tsx): `pages/page4/src/index.tsx`
- [Styled templates](https://github.com/uiwjs/react-login-page/blob/main/pages/page6/src/index.tsx): `pages/page6/src/index.tsx`
- [Split panel template](https://github.com/uiwjs/react-login-page/blob/main/pages/page8/src/index.tsx): `pages/page8/src/index.tsx`
- [Login signup template](https://github.com/uiwjs/react-login-page/blob/main/pages/page10/src/index.tsx): `pages/page10/src/index.tsx`

### Documentation site

- [Documentation routes](https://github.com/uiwjs/react-login-page/blob/main/website/src/router.tsx): `website/src/router.tsx`
- [Markdown preview](https://github.com/uiwjs/react-login-page/blob/main/website/src/comps/Preview.tsx): `website/src/comps/Preview.tsx`
- [Markdown loader](https://github.com/uiwjs/react-login-page/blob/main/website/src/comps/useMdData.tsx): `website/src/comps/useMdData.tsx`
- [Examples page](https://github.com/uiwjs/react-login-page/blob/main/website/src/pages/Examples.tsx): `website/src/pages/Examples.tsx`
- [Docs layout](https://github.com/uiwjs/react-login-page/blob/main/website/src/comps/DocsLayout.tsx): `website/src/comps/DocsLayout.tsx`

### Other components

- **Application developer**

## Connections

- Application developer → Login component API: uses API
- Login component API → State provider: wraps in (evidence: `core/src/index.tsx`)
- Login component API → Form container: renders (evidence: `core/src/index.tsx`)
- Login component API → Composable block: exposes (evidence: `core/src/index.tsx`)
- Login component API → Form button: exposes (evidence: `core/src/index.tsx`)
- Login component API → Text input: exposes (evidence: `core/src/index.tsx`)
- Login component API → Select field: exposes (evidence: `core/src/index.tsx`)
- Login component API → Multiline field: exposes (evidence: `core/src/index.tsx`)
- Login component API → Form renderer: exports (evidence: `core/src/index.tsx`)
- Composable block → State provider: uses state (evidence: `core/src/Block.tsx`)
- Form button → State provider: uses state (evidence: `core/src/Button.tsx`)
- Base login page → Login component API: composes (evidence: `pages/base/src/index.tsx`)
- Banner templates → Login component API: composes (evidence: `pages/page2/src/index.tsx`)
- Standard templates → Login component API: composes (evidence: `pages/page4/src/index.tsx`)
- Styled templates → Login component API: composes (evidence: `pages/page6/src/index.tsx`)
- Split panel template → Login component API: composes (evidence: `pages/page8/src/index.tsx`)
- Login signup template → Login component API: composes (evidence: `pages/page10/src/index.tsx`)
- Documentation routes → Markdown preview: routes to (evidence: `website/src/router.tsx`)
- Documentation routes → Docs layout: routes through (evidence: `website/src/router.tsx`)
- Markdown preview → Markdown loader: loads content (evidence: `website/src/comps/Preview.tsx`)
- Markdown preview → Docs layout: uses navigation (evidence: `website/src/comps/Preview.tsx`)
