base rio setup

This commit is contained in:
David Rodenkirchen
2024-05-24 06:13:41 +02:00
parent be5b9183bb
commit e57d47e38f
5 changed files with 72 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
from .sample_page import SamplePage
+27
View File
@@ -0,0 +1,27 @@
from __future__ import annotations
from dataclasses import KW_ONLY, field
from typing import * # type: ignore
import rio
from .. import components as comps
class SamplePage(rio.Component):
"""
This is an example Page. Pages are identical to other Components and only
differ in how they're used.
"""
def build(self) -> rio.Component:
return rio.Column(
rio.Text("My App", style="heading2"),
rio.Text(
"This is a sample page. Replace it with your own content."
),
spacing=2,
margin=2,
align_x=0.5,
align_y=0,
)