robert-s-lee / lit_dream

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lit_dream component

This ⚡ Lightning component ⚡ was generated automatically with:

lightning init component lit_dream

To run lit_dream

First, install lit_dream (warning: this component has not been officially approved on the lightning gallery):

lightning install component https://github.com/theUser/lit_dream

Once the app is installed, use it in an app:

from lit_dream import TemplateComponent
import lightning as L


class LitApp(L.LightningFlow):
    def __init__(self) -> None:
        super().__init__()
        self.lit_dream = TemplateComponent()

    def run(self):
        print("this is a simple Lightning app to verify your component is working as expected")
        self.lit_dream.run()


app = L.LightningApp(LitApp())

About

License:Apache License 2.0


Languages

Language:Python 100.0%