Skip to main content

Module components

Module components 

Source
Expand description

Reusable UI components.

This module contains all Dioxus components used throughout the application. Components are organized by function:

  • main_nav - Main site navigation with links

§Learning Interface

§Studio (Playground)

  • file_browser - Virtual file system tree
  • collapsible - A titled block of a panel the reader opens and closes
  • chevron - The drawn chevron that says whether a folder or block is open
  • tree - The tree the file browser and the Syntax Tree are drawn with
  • code_editor - Monaco-style code editing
  • formula_editor - LaTeX formula input with preview
  • repl_output - REPL history display
  • proof_panel - Proof tactic interface

§Output & Visualization

§Form Elements

  • input - Styled text input
  • chat - Chat message display

Modules§

ast_tree
The Syntax Tree: how a sentence parses, drawn with the Studio’s tree.
chat
Chat message display component.
chevron
The Studio’s one drawn chevron: the file tree’s folders and the collapsible blocks turn it to say whether they are open.
code_editor
Syntax-highlighted code editor component.
collapsible
A collapsible block: a titled section of a Studio panel that the reader opens and closes.
context_view
Context view panel for Code mode.
debug_drawer
The Studio bottom debug drawer — an IDE-style debugger for imperative (Code-mode) LOGOS, driven by the zero-cost bytecode debugger in logicaffeine_compile::debug. A self-contained, additive panel: it docks below the editor/output and slides away on Stop, leaving the rest of the Studio untouched.
exercise_block
“Now you try” exercise block for the Syntax Guide.
file_browser
File browser sidebar with tree navigation.
footer
Site-wide footer component.
formula_editor
LaTeX formula editor with live preview.
guide_code_block
Interactive code block component for the Programmer’s Guide.
guide_sidebar
Sidebar navigation component for the Programmer’s Guide.
guide_snippet
LOGOS quoted in the Syntax Guide’s prose.
hover_hint
VS Code-style hover hints for the Studio’s LOGOS editors.
icon
Centralized SVG icon component system.
indent
What Enter and Tab do in the Studio’s editor. Each language’s indentation is worked out on the text alone — which lines open a block, which close one, how wide a step is — so the browser only has to apply the edit.
inline_editor
The Studio’s editor set into a page of prose: the Syntax Guide’s examples, exercises and quoted snippets.
input
Text input component for the REPL interface.
katex
KaTeX LaTeX rendering component.
learn_roadmap
The Learn roadmap: the course as one route, era by era, a stop for every module and, inside the open module, a stop for every lesson.
lexicon_gate
Gate component for content that draws exercise words from the lexicon.
logic_output
First-Order Logic output display component.
main_nav
Unified navigation component for consistent header across all pages.
misconception_box
Misconception-first callout (Derek Muller): state the belief the reader arrives with — in their voice — then what LOGOS does and why, and deep-link the runnable evidence example that settles it.
problems
The language server’s diagnostics as the Studio’s editor shows them: a squiggle under the words each one names, and the problem at the top of the hover — VS Code’s Problems, in the page, from the same analysis (logicaffeine_lsp) the server publishes.
proof_panel
The proof drawer for Logic mode: the Studio’s bottom drawer, risen from the dock bar.
recall_block
End-of-section “Check yourself” retrieval cards (Roediger & Karpicke).
repl_output
REPL output for Math mode.
socratic_guide
Socratic guide component for hints and feedback.
status_bar
The Studio’s status bar, in VS Code’s manner: a strip along the bottom edge, under a line, saying how many problems the language service found, where the editor’s caret is and what is selected, and which language the editor holds.
symbol_dictionary
The Symbol Dictionary: what each symbol of a First-Order Logic formula means.
symbol_pad
The symbol pad: a button for every symbol a formula needs, beside a typed answer.
tree
The Studio’s tree: the file browser’s folders and files and the Logic column’s Syntax Tree are both drawn by it, so they read alike.
verilog
The Verilog lexer the Studio’s editor colours .v designs by: keywords and types, sized literals (4'd8, 8'hFF), // and /* */ comments, strings, system tasks ($display), compiler directives (`timescale), operators and punctuation — every character of the source in exactly one token.
vernacular
Math mode’s colouring, from the kernel’s own vocabulary: its commands (Definition, Inductive, Check, …), the literate forms (## To …:, Consider, When, Yield, ## Theorem: with Statement: and Proof:), the term grammar’s binders and sorts (forall, fun, Prop), and the proof tactics. A test holds these lists to the kernel’s parsers: every keyword they read is coloured, or named here as plain prose.