text stringlengths 27 54.3k | url stringlengths 31 137 | page_name stringlengths 7 59 |
|---|---|---|
# MonsterUI Documentation
> MonsterUI is a python library which brings styling to python for FastHTML apps.
## API Reference
- [API List](https://raw.githubusercontent.com/AnswerDotAI/MonsterUI/refs/heads/main/docs/apilist.txt): Complete API Reference
## Examples
- [Ticket](https://monsterui.answer.ai/ticket/md): Mo... | https://monsterui.answer.ai/llms.txt | monsterui.answer.ai_llms.txt |
# monsterui Module Documentation
## monsterui.core
- `class Theme(Enum)`
Selector to choose theme and get all headers needed for app. Includes frankenui + tailwind + daisyui + highlight.js options
Members: slate, stone, gray, neutral, red, rose, orange, green, blue, yellow, violet, zinc
- `headers(self,... | https://raw.githubusercontent.com/AnswerDotAI/MonsterUI/refs/heads/main/docs/apilist.txt | docs_apilist.txt |
"""MonsterUI Help Desk Example - Professional Dashboard with DaisyUI components"""
from fasthtml.common import *
from monsterui.all import *
from datetime import datetime
app, rt = fast_app(hdrs=Theme.blue.headers(daisy=True))
def TicketSteps(step):
return Steps(
LiStep("Submitted", data_content="📝",
... | https://monsterui.answer.ai/ticket/md | ticket_md |
"MonsterUI Scrollspy Example application"
from fasthtml.common import *
from monsterui.all import *
import random
# Using the "slate" theme with Highlight.js enabled
hdrs = Theme.slate.headers(highlightjs=True)
app, rt = fast_app(hdrs=hdrs)
################################
### Example Data and Content ###
#########... | https://monsterui.answer.ai/scrollspy/md | scrollspy_md |
"""FrankenUI Dashboard Example built with MonsterUI (original design by ShadCN)"""
from fasthtml.common import * # Bring in all of fasthtml
import fasthtml.common as fh # Used to get unstyled components
from monsterui.all import * # Bring in all of monsterui, including shadowing fasthtml components with styled compone... | https://monsterui.answer.ai/dashboard/md | dashboard_md |
"""FrankenUI Mail Example built with MonsterUI (original design by ShadCN)"""
from fasthtml.common import *
from monsterui.all import *
from fasthtml.svg import *
import pathlib, json
from datetime import datetime
app, rt = fast_app(hdrs=Theme.blue.headers())
sidebar_group1 = (('home', 'Inbox', '128'), ('file-text',... | https://monsterui.answer.ai/mail/md | mail_md |
"""FrankenUI Cards Example built with MonsterUI (original design by ShadCN)"""
from fasthtml.common import *
from fasthtml.components import Uk_input_tag
from fasthtml.svg import *
from monsterui.all import *
import calendar
from datetime import datetime
app, rt = fast_app(hdrs=Theme.blue.headers())
CreateAccount = ... | https://monsterui.answer.ai/cards/md | cards_md |
"""FrankenUI Playground Example built with MonsterUI (original design by ShadCN)"""
from fasthtml.common import *
from monsterui.all import *
from fasthtml.svg import *
app, rt = fast_app(hdrs=Theme.blue.headers())
preset_options = ["Grammatical Standard English", "Summarize for a 2nd grader",
"Text to comma... | https://monsterui.answer.ai/playground/md | playground_md |
"""FrankenUI Tasks Example built with MonsterUI (original design by ShadCN)"""
from fasthtml.common import *
from monsterui.all import *
from fasthtml.svg import *
import json
app, rt = fast_app(hdrs=Theme.blue.headers())
def LAlignedCheckTxt(txt): return DivLAligned(UkIcon(icon='check'), P(txt, cls=TextPresets.mute... | https://monsterui.answer.ai/tasks/md | tasks_md |
"""FrankenUI Music Example build with MonsterUI (Original design by ShadCN)"""
from fasthtml.common import *
from monsterui.all import *
app, rt = fast_app(hdrs=Theme.blue.headers())
def MusicLi(t,hk=''): return Li(A(DivFullySpaced(t,P(hk,cls=TextPresets.muted_sm))))
music_items = [("About Music", "" ),
... | https://monsterui.answer.ai/music/md | music_md |
"""FrankenUI Forms Example built with MonsterUI (original design by ShadCN)"""
from fasthtml.common import *
from monsterui.all import *
from fasthtml.svg import *
app, rt = fast_app(hdrs=Theme.blue.headers())
def HelpText(c): return P(c,cls=TextPresets.muted_sm)
def heading():
return Div(cls="space-y-5")(
... | https://monsterui.answer.ai/forms/md | forms_md |
"""FrankenUI Auth Example built with MonsterUI (original design by ShadCN)"""
from fasthtml.common import *
from monsterui.all import *
from fasthtml.svg import *
app, rt = fast_app(hdrs=Theme.blue.headers())
@rt
def index():
left = Div(cls="col-span-1 hidden flex-col justify-between bg-zinc-900 p-8 text-whi... | https://monsterui.answer.ai/auth/md | auth_md |
# Buttons & Links API Reference
See Source
See Output
DefaultPrimarySecondaryDangerTextLinkGhost
[code]
def ex_buttons():
return Grid(
Button("Default"),
Button("Primary", cls=ButtonT.primary),
Button("Secondary", cls=ButtonT.secondary),
Button("Danger... | https://monsterui.answer.ai/api_ref/docs_button_link/md | docs_button_link_md |
# Cards API Reference
### Example Usage
See Source
See Output
Header
A card with header and footer
Input
Range
Footer Submit Button
[code]
def ex_card():
return Card(
Form(LabelInput("Input"),
LabelRange("Range")),
header=Div(
CardTitle("Hea... | https://monsterui.answer.ai/api_ref/docs_cards/md | docs_cards_md |
# Articles, Containers & Sections API Reference
### ArticleMeta
Source
[code]
ArticleMeta(*c, cls=(), **kwargs) -> fastcore.xml.FT
[/code]
> A metadata component for use within an Article showing things like date, author etc
**Params**
* `c` contents of ArticleMeta tag (often other tags)
* `cls` Classes... | https://monsterui.answer.ai/api_ref/docs_containers/md | docs_containers_md |
# Dividers API Reference
### Divider
Source
[code]
Divider(*c, cls=('my-4', <DividerT.icon: 'uk-divider-icon'>), **kwargs) -> fastcore.xml.FT
[/code]
> Divider with default styling and margin
**Params**
* `c` contents of Divider tag (often nothing)
* `cls` Classes in addition to Divider styling
* `kw... | https://monsterui.answer.ai/api_ref/docs_dividers/md | docs_dividers_md |
# Forms and User Inputs API Reference
### Example Form
This form was live coded in a 5 minute video here
See Source
See Output
### Emergency Contact Form
Please fill out the form completely
First Name
Last Name
Email
Phone
### Relationship to patient
Parent
Sibling
Friend
Spouse
Significant Other
Relat... | https://monsterui.answer.ai/api_ref/docs_forms/md | docs_forms_md |
# Icons & Images API Reference
# Avatars
See Source
See Output
[code]
def ex_dicebear():
return DivLAligned(
DiceBearAvatar('Isaac Flath',10,10),
DiceBearAvatar('Aaliyah',10,10),
DiceBearAvatar('Alyssa',10,10))
[/code]
### DiceBearAvatar
Source
[code]
Di... | https://monsterui.answer.ai/api_ref/docs_icons_images/md | docs_icons_images_md |
# Layout (Flex and Grid) API Reference
This page covers `Grid`s, which are often used for general structure, `Flex` which is often used for layout of components that are not grid based, padding and positioning that can help you make your layout look good, and dividers that can help break up the page
## Grid
See Sour... | https://monsterui.answer.ai/api_ref/docs_layout/md | docs_layout_md |
# Lists API Reference
See Source
See Output
#### disc List:
* Item 1
* Item 2
#### circle List:
* Item 1
* Item 2
#### square List:
* Item 1
* Item 2
#### decimal List:
* Item 1
* Item 2
#### hyphen List:
* Item 1
* Item 2
#### bullet List:
* Item 1
* Item 2
#### divider List:
... | https://monsterui.answer.ai/api_ref/docs_lists/md | docs_lists_md |
# Loading IndicatorsAPI Reference
See Source
See Output
[code]
def ex_loading1():
return Loading()
[/code]
See Source
See Output
[code]
def ex_loading2():
types = [LoadingT.spinner, LoadingT.dots, LoadingT.ring, LoadingT.ball, LoadingT.bars, LoadingT.infinity]
sizes = [Loadi... | https://monsterui.answer.ai/api_ref/docs_loading/md | docs_loading_md |
# Markdown + automated HTML styling API Reference
See Source
See Output
# Example Markdown
* With **bold** and _italics_
* With a link
### And a subheading
> This is a blockquote
This supports inline latex: $e^{\pi i} + 1 = 0$ as well as block latex thanks to Katex.
$$ \frac{1}{2\pi i} \oint_C \frac{f(z)}{z... | https://monsterui.answer.ai/api_ref/docs_markdown_HTMLstyling/md | docs_markdown_HTMLstyling_md |
# Modals API Reference
### Example Modal
This is a subtitle
See Source
See Output
Open Modal
## Simple Test Modal
With some somewhat brief content to show that it works!
Close
[code]
def ex_modal():
return Div(
Button("Open Modal",data_uk_toggle="target: #my-modal" ),
Modal... | https://monsterui.answer.ai/api_ref/docs_modals/md | docs_modals_md |
# Navigation (Nav, NavBar, Tabs, etc.) API Reference
# Nav, NavBar, DowDownNav, and Tab examples
* * *
## Nav
See Source
See Output
* Option 1
* Option 2
* Option 3
[code]
def ex_nav1():
mbrs1 = [Li(A('Option 1'), cls='uk-active'), Li(A('Option 2')), Li(A('Option 3'))]
return NavContai... | https://monsterui.answer.ai/api_ref/docs_navigation/md | docs_navigation_md |
# Alerts & Toasts API Reference
### Alerts
The simplest alert is a div wrapped with a span:
See Source
See Output
This is a plain alert
[code]
def ex_alerts1(): return Alert("This is a plain alert")
[/code]
Alert colors are defined by the alert styles:
See Source
See Output
Your purchase has been co... | https://monsterui.answer.ai/api_ref/docs_notifications/md | docs_notifications_md |
# Carousel Sliders API Reference
Here is a simple example of a slider:
See Source
See Output
[code]
def ex_sliders_1():
return Slider(*[Img(src=f'https://picsum.photos/200/200?random={i}') for i in range(10)])
[/code]
Here is a slider with cards:
See Source
See Output
### Card 0
Card 0 conten... | https://monsterui.answer.ai/api_ref/docs_sliders/md | docs_sliders_md |
# Steps API Reference
See Source
See Output
* Account Created
* Profile Setup
* Verification
[code]
def ex_steps2():
return Steps(
LiStep("Account Created", cls=StepT.primary),
LiStep("Profile Setup", cls=StepT.neutral),
LiStep("Verification", cls=StepT.neutral... | https://monsterui.answer.ai/api_ref/docs_steps/md | docs_steps_md |
# Tables API Reference
See Source
See Output
Name | Age | City
---|---|---
Alice | 25 | New York
Bob | 30 | San Francisco
Charlie | 35 | London
Total | 90
[code]
def ex_tables0():
return Table(
Thead(Tr(Th('Name'), Th('Age'), Th('City'))),
Tbody(Tr(Td('Alice'), Td(... | https://monsterui.answer.ai/api_ref/docs_tables/md | docs_tables_md |
# Theme and Headers API Reference
To get headers with a default theme use `hdrs=Theme.<color>.headers()`. For example for the blue theme you would use `hdrs=Theme.blue.headers()`. The theme integrated together different frameworks and allows tailwind, FrankenUI, HighlighJS, and DaisyUI components to work well together... | https://monsterui.answer.ai/api_ref/docs_theme_headers/md | docs_theme_headers_md |
# Typography API Reference
Ready to go semantic options that cover most of what you need based on the HTML spec
See Source
See Output
Titled
# Titled
# Level 1 Heading (H1)
## Level 2 Heading (H2)
### Level 3 Heading (H3)
#### Level 4 Heading (H4)
##### Level 5 Heading (H5)
###### Level 6 Heading (H6)
[code... | https://monsterui.answer.ai/api_ref/docs_typography/md | docs_typography_md |
# MonterUI Page Layout Guide
This guide will discuss 3 tools for laying out your app pages, Grid, Flexbox, and Columns. This page will discuss the strengths and when to use each individually, and then a section for how to combine them for more complex layouts at the end.
> Note: This guide is designed to get you star... | https://monsterui.answer.ai/tutorial_layout/md | tutorial_layout_md |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 3