# iandyone/ui-kit-rollup architecture

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

- Interactive diagram: https://gitdiagram.com/iandyone/ui-kit-rollup
- Repository: https://github.com/iandyone/ui-kit-rollup

## Overview

ui-kit-rollup is a React component library. A consumer imports its root or component subpaths and uses Button, Input, or Typography in an application. The root entry re-exports the component APIs; each component implements its own props and styling. The README also documents package formats, CSS, and Storybook examples, but build and documentation infrastructure is outside this runtime map. Component relationships are grounded in the excerpts; package export mappings are documented in package.json.

Main entry points: [`src/index.ts`](https://github.com/iandyone/ui-kit-rollup/blob/master/src/index.ts) (Root entry), [`src/button/button.tsx`](https://github.com/iandyone/ui-kit-rollup/blob/master/src/button/button.tsx) (Button), [`src/input/input.tsx`](https://github.com/iandyone/ui-kit-rollup/blob/master/src/input/input.tsx) (Input), [`src/typography/typography.tsx`](https://github.com/iandyone/ui-kit-rollup/blob/master/src/typography/typography.tsx) (Typography)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["Public API"]
  node_root["Root entry<br/>[index.ts]"]
  node_button_api["Button API<br/>[index.ts]"]
  node_input_api["Input API<br/>[index.ts]"]
  node_typography_api["Typography API<br/>[index.ts]"]
end

subgraph group_components["UI Components"]
  node_button["Button<br/>[button.tsx]"]
  node_button_types["Button props<br/>[types.ts]"]
  node_button_css["Button styles<br/>[button.module.css]"]
  node_input["Input<br/>[input.tsx]"]
  node_input_types["Input props<br/>[types.ts]"]
  node_input_css["Input styles<br/>[input.module.css]"]
  node_typography["Typography<br/>[typography.tsx]"]
  node_typography_types["Typography props<br/>[types.ts]"]
  node_typography_css["Typography styles"]
end

node_consumer(("React consumer"))

node_consumer -->|"imports root"| node_root
node_root -->|"re-exports"| node_button_api
node_root -->|"re-exports"| node_input_api
node_root -->|"re-exports"| node_typography_api
node_button_api -->|"exports"| node_button
node_input_api -->|"exports"| node_input
node_typography_api -->|"exports"| node_typography
node_button -->|"uses props"| node_button_types
node_button -->|"uses styles"| node_button_css
node_input -->|"uses props"| node_input_types
node_input -->|"uses styles"| node_input_css
node_typography -->|"uses props"| node_typography_types
node_typography -->|"uses styles"| node_typography_css

click node_root "https://github.com/iandyone/ui-kit-rollup/blob/master/src/index.ts"
click node_button_api "https://github.com/iandyone/ui-kit-rollup/blob/master/src/button/index.ts"
click node_input_api "https://github.com/iandyone/ui-kit-rollup/blob/master/src/input/index.ts"
click node_typography_api "https://github.com/iandyone/ui-kit-rollup/blob/master/src/typography/index.ts"
click node_button "https://github.com/iandyone/ui-kit-rollup/blob/master/src/button/button.tsx"
click node_button_types "https://github.com/iandyone/ui-kit-rollup/blob/master/src/button/types.ts"
click node_button_css "https://github.com/iandyone/ui-kit-rollup/blob/master/src/button/button.module.css"
click node_input "https://github.com/iandyone/ui-kit-rollup/blob/master/src/input/input.tsx"
click node_input_types "https://github.com/iandyone/ui-kit-rollup/blob/master/src/input/types.ts"
click node_input_css "https://github.com/iandyone/ui-kit-rollup/blob/master/src/input/input.module.css"
click node_typography "https://github.com/iandyone/ui-kit-rollup/blob/master/src/typography/typography.tsx"
click node_typography_types "https://github.com/iandyone/ui-kit-rollup/blob/master/src/typography/types.ts"
click node_typography_css "https://github.com/iandyone/ui-kit-rollup/blob/master/src/typography/typography.module.css"

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_root,node_button_api,node_input_api,node_typography_api toneBlue
class node_button,node_button_types,node_button_css,node_input,node_input_types,node_input_css,node_typography,node_typography_types,node_typography_css toneAmber
class node_consumer toneIndigo
```

## Components

### Public API

- [Root entry](https://github.com/iandyone/ui-kit-rollup/blob/master/src/index.ts): `src/index.ts`
- [Button API](https://github.com/iandyone/ui-kit-rollup/blob/master/src/button/index.ts): `src/button/index.ts`
- [Input API](https://github.com/iandyone/ui-kit-rollup/blob/master/src/input/index.ts): `src/input/index.ts`
- [Typography API](https://github.com/iandyone/ui-kit-rollup/blob/master/src/typography/index.ts): `src/typography/index.ts`

### UI Components

- [Button](https://github.com/iandyone/ui-kit-rollup/blob/master/src/button/button.tsx): `src/button/button.tsx`
- [Button props](https://github.com/iandyone/ui-kit-rollup/blob/master/src/button/types.ts): `src/button/types.ts`
- [Button styles](https://github.com/iandyone/ui-kit-rollup/blob/master/src/button/button.module.css): `src/button/button.module.css`
- [Input](https://github.com/iandyone/ui-kit-rollup/blob/master/src/input/input.tsx): `src/input/input.tsx`
- [Input props](https://github.com/iandyone/ui-kit-rollup/blob/master/src/input/types.ts): `src/input/types.ts`
- [Input styles](https://github.com/iandyone/ui-kit-rollup/blob/master/src/input/input.module.css): `src/input/input.module.css`
- [Typography](https://github.com/iandyone/ui-kit-rollup/blob/master/src/typography/typography.tsx): `src/typography/typography.tsx`
- [Typography props](https://github.com/iandyone/ui-kit-rollup/blob/master/src/typography/types.ts): `src/typography/types.ts`
- [Typography styles](https://github.com/iandyone/ui-kit-rollup/blob/master/src/typography/typography.module.css): `src/typography/typography.module.css`

### Other components

- **React consumer**

## Connections

- React consumer → Root entry: imports root (evidence: `README.md`)
- Root entry → Button API: re-exports (evidence: `src/index.ts`)
- Root entry → Input API: re-exports (evidence: `src/index.ts`)
- Root entry → Typography API: re-exports (evidence: `src/index.ts`)
- Button API → Button: exports (evidence: `src/button/index.ts`)
- Input API → Input: exports (evidence: `src/input/index.ts`)
- Typography API → Typography: exports (evidence: `src/typography/index.ts`)
- Button → Button props: uses props (evidence: `src/button/button.tsx`)
- Button → Button styles: uses styles (evidence: `src/button/button.tsx`)
- Input → Input props: uses props (evidence: `src/input/input.tsx`)
- Input → Input styles: uses styles (evidence: `src/input/input.tsx`)
- Typography → Typography props: uses props (evidence: `src/typography/typography.tsx`)
- Typography → Typography styles: uses styles (evidence: `src/typography/typography.tsx`)
