# 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=(, ), htmx_indicator=False, **kwargs) -> fastcore.xml.FT [/code] > Creates a loading animation component **Params** * `cls` Classes for indicator (generally `LoadingT` options) * `htmx_indicator` Add 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 | | | |