- Add PLAN.md with 40-step checklist across 10 phases - Add CLAUDE.md with project-specific instructions - Set up nix flake with FastHTML/MonsterUI dependencies - Create Python package skeleton (src/animaltrack) - Vendor FastHTML and MonsterUI documentation - Add Docker build configuration 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1.2 KiB
1.2 KiB
Loading Indicators API 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 = [LoadingT.xs, LoadingT.sm, LoadingT.md, LoadingT.lg]
rows = [Div(*[Loading((t,s)) for s in sizes], cls='flex gap-4') for t in types]
return Div(*rows, cls='flex flex-col gap-4')
[/code]
Loading
Source
[code]
Loading(cls=(<LoadingT.bars: 'loading-bars'>, <LoadingT.lg: 'loading-large'>), htmx_indicator=False, **kwargs) -> fastcore.xml.FT
[/code]
Creates a loading animation component
Params
-
clsClasses for indicator (generallyLoadingToptions) -
htmx_indicatorAdd htmx-indicator class -
kwargs
Returns: Span(cls=...)
LoadingT
__
| Option | Value | Option | Value | Option | Value |
|---|---|---|---|---|---|
| spinner | loading-spinner | dots | loading-dots | ring | loading-ring |
| ball | loading-ball | bars | loading-bars | infinity | loading-infinity |
| xs | loading-xsmall | sm | loading-small | md | loading-medium |
| lg | loading-large |