Drawer
Wireframe нижней выезжающей панели (bottom sheet).
github.com/fastygo/templ/ui
Wireframe нижней выезжающей панели (bottom sheet).
По умолчанию
Содержимое drawer.
import "github.com/fastygo/templ/ui"
templ Example() {
@ui.Box(ui.BoxProps{Class: "w-full max-w-md rounded-t-xl border border-border bg-card p-4"}) {
@ui.Box(ui.BoxProps{Class: "mx-auto mb-3 h-1 w-10 rounded-full bg-muted"})
@ui.Text(ui.TextProps{}, "Содержимое drawer.")
}
}
import "github.com/fastygo/templ/ui"
templ Example() {
@ui.Box(ui.BoxProps{Class: "w-full max-w-md rounded-t-xl border border-border bg-card p-4"}) {
@ui.Box(ui.BoxProps{Class: "mx-auto mb-3 h-1 w-10 rounded-full bg-muted"})
@ui.Text(ui.TextProps{}, "Содержимое drawer.")
}
}
API
Class · string — Поверхность bottom sheet