AppBar
AppBar component for Universal Apps
Last updated
Was this helpful?
AppBar component for Universal Apps
Last updated
Was this helpful?
Was this helpful?
$Drawer = New-UDDrawer -Children {
New-UDList -Children {
New-UDListItem -Label "Home"
New-UDListItem -Label "Getting Started" -Children {
New-UDListItem -Label "Installation" -OnClick {}
New-UDListItem -Label "Usage" -OnClick {}
New-UDListItem -Label "FAQs" -OnClick {}
New-UDListItem -Label "System Requirements" -OnClick {}
New-UDListItem -Label "Purchasing" -OnClick {}
}
}
}
New-UDAppBar -Position relative -Children { New-UDElement -Tag 'div' -Content { "Title" } } -Drawer $DrawerNew-UDAppBar -Children { "Hello" } -FooterNew-UDApp -Title 'PowerShell Universal' -Pages @(
New-UDPage -Title home -Name home -Blank -HideNavigation -Content {
New-UDHelmet -Tag 'style' -Content '
#Footer {
position: relative;
}
#Footer + div {
display: none
}
#content {
min-height: calc(100vh - 128px);
}
'
New-UDAppBar -Position sticky -ClassName header -DisableThemeToggle -Children {
New-UDParagraph -Text "Header"
}
New-UDElement -Tag 'div' -Content {
1..100 | % {
New-UDTypography -Text 'Hello' -Variant h1
}
} -Id 'content'
New-UDAppBar -Id Footer -Footer -Children {
New-UDParagraph -Text "Footer"
}
}
)New-UDAppBar -Position fixed -Children { New-UDElement -Tag 'div' -Content { "Title" } }
New-UDElement -Tag 'div' -Content {
} -Attributes @{
style = @{
height = "10000px"
}
}