-
Notifications
You must be signed in to change notification settings - Fork 0
/
FAB.html
28 lines (26 loc) · 27.7 KB
/
FAB.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>FAB | MDC-MAUI</title>
<meta name="description" content="Material design components for maui">
<link rel="preload stylesheet" href="/assets/style.28c2df9f.css" as="style">
<link rel="modulepreload" href="/assets/chunks/FABs.3649b84d.js">
<link rel="modulepreload" href="/assets/app.f5379453.js">
<link rel="modulepreload" href="/assets/FAB.md.d7c67b07.lean.js">
<script id="check-dark-light">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
</head>
<body>
<div id="app"><div class="Layout" data-v-93a960b4><!--[--><!--]--><!--[--><span tabindex="-1" data-v-151f2593></span><a href="#VPContent" class="VPSkipLink visually-hidden" data-v-151f2593> Skip to content </a><!--]--><!----><header class="VPNav" data-v-93a960b4 data-v-0fa0e57d><div class="VPNavBar has-sidebar" data-v-0fa0e57d data-v-be450ad9><div class="container" data-v-be450ad9><div class="title" data-v-be450ad9><div class="VPNavBarTitle has-sidebar" data-v-be450ad9 data-v-6d2fb2d9><a class="title" href="/" data-v-6d2fb2d9><!--[--><!--]--><!----><!--[-->MDC-MAUI<!--]--><!--[--><!--]--></a></div></div><div class="content" data-v-be450ad9><div class="curtain" data-v-be450ad9></div><div class="content-body" data-v-be450ad9><!--[--><!--]--><!----><!----><!----><div class="VPNavBarAppearance appearance" data-v-be450ad9 data-v-da3f667a><button class="VPSwitch VPSwitchAppearance" type="button" role="switch" aria-label="toggle dark mode" aria-checked="false" data-v-da3f667a data-v-0d529b6d data-v-f3c41672><span class="check" data-v-f3c41672><span class="icon" data-v-f3c41672><!--[--><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="sun" data-v-0d529b6d><path d="M12,18c-3.3,0-6-2.7-6-6s2.7-6,6-6s6,2.7,6,6S15.3,18,12,18zM12,8c-2.2,0-4,1.8-4,4c0,2.2,1.8,4,4,4c2.2,0,4-1.8,4-4C16,9.8,14.2,8,12,8z"></path><path d="M12,4c-0.6,0-1-0.4-1-1V1c0-0.6,0.4-1,1-1s1,0.4,1,1v2C13,3.6,12.6,4,12,4z"></path><path d="M12,24c-0.6,0-1-0.4-1-1v-2c0-0.6,0.4-1,1-1s1,0.4,1,1v2C13,23.6,12.6,24,12,24z"></path><path d="M5.6,6.6c-0.3,0-0.5-0.1-0.7-0.3L3.5,4.9c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l1.4,1.4c0.4,0.4,0.4,1,0,1.4C6.2,6.5,5.9,6.6,5.6,6.6z"></path><path d="M19.8,20.8c-0.3,0-0.5-0.1-0.7-0.3l-1.4-1.4c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l1.4,1.4c0.4,0.4,0.4,1,0,1.4C20.3,20.7,20,20.8,19.8,20.8z"></path><path d="M3,13H1c-0.6,0-1-0.4-1-1s0.4-1,1-1h2c0.6,0,1,0.4,1,1S3.6,13,3,13z"></path><path d="M23,13h-2c-0.6,0-1-0.4-1-1s0.4-1,1-1h2c0.6,0,1,0.4,1,1S23.6,13,23,13z"></path><path d="M4.2,20.8c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l1.4-1.4c0.4-0.4,1-0.4,1.4,0s0.4,1,0,1.4l-1.4,1.4C4.7,20.7,4.5,20.8,4.2,20.8z"></path><path d="M18.4,6.6c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l1.4-1.4c0.4-0.4,1-0.4,1.4,0s0.4,1,0,1.4l-1.4,1.4C18.9,6.5,18.6,6.6,18.4,6.6z"></path></svg><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="moon" data-v-0d529b6d><path d="M12.1,22c-0.3,0-0.6,0-0.9,0c-5.5-0.5-9.5-5.4-9-10.9c0.4-4.8,4.2-8.6,9-9c0.4,0,0.8,0.2,1,0.5c0.2,0.3,0.2,0.8-0.1,1.1c-2,2.7-1.4,6.4,1.3,8.4c2.1,1.6,5,1.6,7.1,0c0.3-0.2,0.7-0.3,1.1-0.1c0.3,0.2,0.5,0.6,0.5,1c-0.2,2.7-1.5,5.1-3.6,6.8C16.6,21.2,14.4,22,12.1,22zM9.3,4.4c-2.9,1-5,3.6-5.2,6.8c-0.4,4.4,2.8,8.3,7.2,8.7c2.1,0.2,4.2-0.4,5.8-1.8c1.1-0.9,1.9-2.1,2.4-3.4c-2.5,0.9-5.3,0.5-7.5-1.1C9.2,11.4,8.1,7.7,9.3,4.4z"></path></svg><!--]--></span></span></button></div><div class="VPSocialLinks VPNavBarSocialLinks social-links" data-v-be450ad9 data-v-2ab2a029 data-v-f6988cfb><!--[--><a class="VPSocialLink" href="https://github.com/mdc-maui/mdc-maui" target="_blank" rel="noopener" data-v-f6988cfb data-v-e57698f6><svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>GitHub</title><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg></a><!--]--></div><div class="VPFlyout VPNavBarExtra extra" data-v-be450ad9 data-v-f38c483a data-v-96001b6b><button type="button" class="button" aria-haspopup="true" aria-expanded="false" aria-label="extra navigation" data-v-96001b6b><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="icon" data-v-96001b6b><circle cx="12" cy="12" r="2"></circle><circle cx="19" cy="12" r="2"></circle><circle cx="5" cy="12" r="2"></circle></svg></button><div class="menu" data-v-96001b6b><div class="VPMenu" data-v-96001b6b data-v-e7ea1737><!----><!--[--><!--[--><!----><div class="group" data-v-f38c483a><div class="item appearance" data-v-f38c483a><p class="label" data-v-f38c483a>Appearance</p><div class="appearance-action" data-v-f38c483a><button class="VPSwitch VPSwitchAppearance" type="button" role="switch" aria-label="toggle dark mode" aria-checked="false" data-v-f38c483a data-v-0d529b6d data-v-f3c41672><span class="check" data-v-f3c41672><span class="icon" data-v-f3c41672><!--[--><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="sun" data-v-0d529b6d><path d="M12,18c-3.3,0-6-2.7-6-6s2.7-6,6-6s6,2.7,6,6S15.3,18,12,18zM12,8c-2.2,0-4,1.8-4,4c0,2.2,1.8,4,4,4c2.2,0,4-1.8,4-4C16,9.8,14.2,8,12,8z"></path><path d="M12,4c-0.6,0-1-0.4-1-1V1c0-0.6,0.4-1,1-1s1,0.4,1,1v2C13,3.6,12.6,4,12,4z"></path><path d="M12,24c-0.6,0-1-0.4-1-1v-2c0-0.6,0.4-1,1-1s1,0.4,1,1v2C13,23.6,12.6,24,12,24z"></path><path d="M5.6,6.6c-0.3,0-0.5-0.1-0.7-0.3L3.5,4.9c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l1.4,1.4c0.4,0.4,0.4,1,0,1.4C6.2,6.5,5.9,6.6,5.6,6.6z"></path><path d="M19.8,20.8c-0.3,0-0.5-0.1-0.7-0.3l-1.4-1.4c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l1.4,1.4c0.4,0.4,0.4,1,0,1.4C20.3,20.7,20,20.8,19.8,20.8z"></path><path d="M3,13H1c-0.6,0-1-0.4-1-1s0.4-1,1-1h2c0.6,0,1,0.4,1,1S3.6,13,3,13z"></path><path d="M23,13h-2c-0.6,0-1-0.4-1-1s0.4-1,1-1h2c0.6,0,1,0.4,1,1S23.6,13,23,13z"></path><path d="M4.2,20.8c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l1.4-1.4c0.4-0.4,1-0.4,1.4,0s0.4,1,0,1.4l-1.4,1.4C4.7,20.7,4.5,20.8,4.2,20.8z"></path><path d="M18.4,6.6c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l1.4-1.4c0.4-0.4,1-0.4,1.4,0s0.4,1,0,1.4l-1.4,1.4C18.9,6.5,18.6,6.6,18.4,6.6z"></path></svg><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="moon" data-v-0d529b6d><path d="M12.1,22c-0.3,0-0.6,0-0.9,0c-5.5-0.5-9.5-5.4-9-10.9c0.4-4.8,4.2-8.6,9-9c0.4,0,0.8,0.2,1,0.5c0.2,0.3,0.2,0.8-0.1,1.1c-2,2.7-1.4,6.4,1.3,8.4c2.1,1.6,5,1.6,7.1,0c0.3-0.2,0.7-0.3,1.1-0.1c0.3,0.2,0.5,0.6,0.5,1c-0.2,2.7-1.5,5.1-3.6,6.8C16.6,21.2,14.4,22,12.1,22zM9.3,4.4c-2.9,1-5,3.6-5.2,6.8c-0.4,4.4,2.8,8.3,7.2,8.7c2.1,0.2,4.2-0.4,5.8-1.8c1.1-0.9,1.9-2.1,2.4-3.4c-2.5,0.9-5.3,0.5-7.5-1.1C9.2,11.4,8.1,7.7,9.3,4.4z"></path></svg><!--]--></span></span></button></div></div></div><div class="group" data-v-f38c483a><div class="item social-links" data-v-f38c483a><div class="VPSocialLinks social-links-list" data-v-f38c483a data-v-f6988cfb><!--[--><a class="VPSocialLink" href="https://github.com/mdc-maui/mdc-maui" target="_blank" rel="noopener" data-v-f6988cfb data-v-e57698f6><svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>GitHub</title><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg></a><!--]--></div></div></div><!--]--><!--]--></div></div></div><!--[--><!--]--><button type="button" class="VPNavBarHamburger hamburger" aria-label="mobile navigation" aria-expanded="false" aria-controls="VPNavScreen" data-v-be450ad9 data-v-e5dd9c1c><span class="container" data-v-e5dd9c1c><span class="top" data-v-e5dd9c1c></span><span class="middle" data-v-e5dd9c1c></span><span class="bottom" data-v-e5dd9c1c></span></span></button></div></div></div></div><!----></header><div class="VPLocalNav" data-v-93a960b4 data-v-2817d72e><button class="menu" aria-expanded="false" aria-controls="VPSidebarNav" data-v-2817d72e><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="menu-icon" data-v-2817d72e><path d="M17,11H3c-0.6,0-1-0.4-1-1s0.4-1,1-1h14c0.6,0,1,0.4,1,1S17.6,11,17,11z"></path><path d="M21,7H3C2.4,7,2,6.6,2,6s0.4-1,1-1h18c0.6,0,1,0.4,1,1S21.6,7,21,7z"></path><path d="M21,15H3c-0.6,0-1-0.4-1-1s0.4-1,1-1h18c0.6,0,1,0.4,1,1S21.6,15,21,15z"></path><path d="M17,19H3c-0.6,0-1-0.4-1-1s0.4-1,1-1h14c0.6,0,1,0.4,1,1S17.6,19,17,19z"></path></svg><span class="menu-text" data-v-2817d72e>Menu</span></button><a class="top-link" href="#" data-v-2817d72e>Return to top</a></div><aside class="VPSidebar" data-v-93a960b4 data-v-c79ccefa><div class="curtain" data-v-c79ccefa></div><nav class="nav" id="VPSidebarNav" aria-labelledby="sidebar-aria-label" tabindex="-1" data-v-c79ccefa><span class="visually-hidden" id="sidebar-aria-label" data-v-c79ccefa> Sidebar Navigation </span><!--[--><!--]--><!--[--><div class="group" data-v-c79ccefa><section class="VPSidebarItem level-0 collapsible" data-v-c79ccefa data-v-76409885><div class="item" role="button" data-v-76409885><div class="indicator" data-v-76409885></div><a class="VPLink link" data-v-76409885 data-v-30c06bd3><!--[--><h2 class="text" data-v-76409885>Introduction</h2><!--]--><!----></a><div class="caret" role="button" data-v-76409885><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="caret-icon" data-v-76409885><path d="M9,19c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l5.3-5.3L8.3,6.7c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l6,6c0.4,0.4,0.4,1,0,1.4l-6,6C9.5,18.9,9.3,19,9,19z"></path></svg></div></div><div class="items" data-v-76409885><!--[--><div class="VPSidebarItem level-1 is-link" data-v-76409885 data-v-76409885><div class="item" data-v-76409885><div class="indicator" data-v-76409885></div><a class="VPLink link link" href="/getting-started" data-v-76409885 data-v-30c06bd3><!--[--><p class="text" data-v-76409885>Getting Started</p><!--]--><!----></a><div class="caret" role="button" data-v-76409885><!----></div></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-76409885 data-v-76409885><div class="item" data-v-76409885><div class="indicator" data-v-76409885></div><a class="VPLink link link" href="/icon-packs" data-v-76409885 data-v-30c06bd3><!--[--><p class="text" data-v-76409885>Icon packs</p><!--]--><!----></a><div class="caret" role="button" data-v-76409885><!----></div></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-76409885 data-v-76409885><div class="item" data-v-76409885><div class="indicator" data-v-76409885></div><a class="VPLink link link" href="/sponsor" data-v-76409885 data-v-30c06bd3><!--[--><p class="text" data-v-76409885>Sponsor this project</p><!--]--><!----></a><div class="caret" role="button" data-v-76409885><!----></div></div><!----></div><!--]--></div></section></div><div class="group" data-v-c79ccefa><section class="VPSidebarItem level-0 collapsible has-active" data-v-c79ccefa data-v-76409885><div class="item" role="button" data-v-76409885><div class="indicator" data-v-76409885></div><a class="VPLink link" data-v-76409885 data-v-30c06bd3><!--[--><h2 class="text" data-v-76409885>Components</h2><!--]--><!----></a><div class="caret" role="button" data-v-76409885><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="caret-icon" data-v-76409885><path d="M9,19c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l5.3-5.3L8.3,6.7c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l6,6c0.4,0.4,0.4,1,0,1.4l-6,6C9.5,18.9,9.3,19,9,19z"></path></svg></div></div><div class="items" data-v-76409885><!--[--><div class="VPSidebarItem level-1 is-link" data-v-76409885 data-v-76409885><div class="item" data-v-76409885><div class="indicator" data-v-76409885></div><a class="VPLink link link" href="/button" data-v-76409885 data-v-30c06bd3><!--[--><p class="text" data-v-76409885>Button</p><!--]--><!----></a><div class="caret" role="button" data-v-76409885><!----></div></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-76409885 data-v-76409885><div class="item" data-v-76409885><div class="indicator" data-v-76409885></div><a class="VPLink link link" href="/icon-button" data-v-76409885 data-v-30c06bd3><!--[--><p class="text" data-v-76409885>IconButton</p><!--]--><!----></a><div class="caret" role="button" data-v-76409885><!----></div></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-76409885 data-v-76409885><div class="item" data-v-76409885><div class="indicator" data-v-76409885></div><a class="VPLink link link" href="/card" data-v-76409885 data-v-30c06bd3><!--[--><p class="text" data-v-76409885>Card</p><!--]--><!----></a><div class="caret" role="button" data-v-76409885><!----></div></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-76409885 data-v-76409885><div class="item" data-v-76409885><div class="indicator" data-v-76409885></div><a class="VPLink link link" href="/checkbox" data-v-76409885 data-v-30c06bd3><!--[--><p class="text" data-v-76409885>CheckBox</p><!--]--><!----></a><div class="caret" role="button" data-v-76409885><!----></div></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-76409885 data-v-76409885><div class="item" data-v-76409885><div class="indicator" data-v-76409885></div><a class="VPLink link link" href="/chip" data-v-76409885 data-v-30c06bd3><!--[--><p class="text" data-v-76409885>Chip</p><!--]--><!----></a><div class="caret" role="button" data-v-76409885><!----></div></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-76409885 data-v-76409885><div class="item" data-v-76409885><div class="indicator" data-v-76409885></div><a class="VPLink link link" href="/combo-box" data-v-76409885 data-v-30c06bd3><!--[--><p class="text" data-v-76409885>ComboBox</p><!--]--><!----></a><div class="caret" role="button" data-v-76409885><!----></div></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-76409885 data-v-76409885><div class="item" data-v-76409885><div class="indicator" data-v-76409885></div><a class="VPLink link link" href="/context-menu" data-v-76409885 data-v-30c06bd3><!--[--><p class="text" data-v-76409885>ContextMenu</p><!--]--><!----></a><div class="caret" role="button" data-v-76409885><!----></div></div><!----></div><div class="VPSidebarItem level-1 is-link is-active has-active" data-v-76409885 data-v-76409885><div class="item" data-v-76409885><div class="indicator" data-v-76409885></div><a class="VPLink link link" href="/FAB" data-v-76409885 data-v-30c06bd3><!--[--><p class="text" data-v-76409885>FAB</p><!--]--><!----></a><div class="caret" role="button" data-v-76409885><!----></div></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-76409885 data-v-76409885><div class="item" data-v-76409885><div class="indicator" data-v-76409885></div><a class="VPLink link link" href="/navigation-bar" data-v-76409885 data-v-30c06bd3><!--[--><p class="text" data-v-76409885>NavigationBar</p><!--]--><!----></a><div class="caret" role="button" data-v-76409885><!----></div></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-76409885 data-v-76409885><div class="item" data-v-76409885><div class="indicator" data-v-76409885></div><a class="VPLink link link" href="/navigation-drawer" data-v-76409885 data-v-30c06bd3><!--[--><p class="text" data-v-76409885>NavigationDrawer</p><!--]--><!----></a><div class="caret" role="button" data-v-76409885><!----></div></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-76409885 data-v-76409885><div class="item" data-v-76409885><div class="indicator" data-v-76409885></div><a class="VPLink link link" href="/popup" data-v-76409885 data-v-30c06bd3><!--[--><p class="text" data-v-76409885>Popup</p><!--]--><!----></a><div class="caret" role="button" data-v-76409885><!----></div></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-76409885 data-v-76409885><div class="item" data-v-76409885><div class="indicator" data-v-76409885></div><a class="VPLink link link" href="/progress-indicator" data-v-76409885 data-v-30c06bd3><!--[--><p class="text" data-v-76409885>ProgressIndicator</p><!--]--><!----></a><div class="caret" role="button" data-v-76409885><!----></div></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-76409885 data-v-76409885><div class="item" data-v-76409885><div class="indicator" data-v-76409885></div><a class="VPLink link link" href="/radio-button" data-v-76409885 data-v-30c06bd3><!--[--><p class="text" data-v-76409885>RadioButton</p><!--]--><!----></a><div class="caret" role="button" data-v-76409885><!----></div></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-76409885 data-v-76409885><div class="item" data-v-76409885><div class="indicator" data-v-76409885></div><a class="VPLink link link" href="/switch" data-v-76409885 data-v-30c06bd3><!--[--><p class="text" data-v-76409885>Switch</p><!--]--><!----></a><div class="caret" role="button" data-v-76409885><!----></div></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-76409885 data-v-76409885><div class="item" data-v-76409885><div class="indicator" data-v-76409885></div><a class="VPLink link link" href="/text-field" data-v-76409885 data-v-30c06bd3><!--[--><p class="text" data-v-76409885>TextField</p><!--]--><!----></a><div class="caret" role="button" data-v-76409885><!----></div></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-76409885 data-v-76409885><div class="item" data-v-76409885><div class="indicator" data-v-76409885></div><a class="VPLink link link" href="/wrap-layout" data-v-76409885 data-v-30c06bd3><!--[--><p class="text" data-v-76409885>WrapLayout</p><!--]--><!----></a><div class="caret" role="button" data-v-76409885><!----></div></div><!----></div><!--]--></div></section></div><!--]--><!--[--><!--]--></nav></aside><div class="VPContent has-sidebar" id="VPContent" data-v-93a960b4 data-v-0bd490fb><div class="VPDoc has-sidebar has-aside" data-v-0bd490fb data-v-c5936a1e><div class="container" data-v-c5936a1e><div class="aside" data-v-c5936a1e><div class="aside-curtain" data-v-c5936a1e></div><div class="aside-container" data-v-c5936a1e><div class="aside-content" data-v-c5936a1e><div class="VPDocAside" data-v-c5936a1e data-v-cdc66372><!--[--><!--]--><!--[--><!--]--><div class="VPDocAsideOutline" data-v-cdc66372 data-v-5dd9d5f6><div class="content" data-v-5dd9d5f6><div class="outline-marker" data-v-5dd9d5f6></div><div class="outline-title" data-v-5dd9d5f6>On this page</div><nav aria-labelledby="doc-outline-aria-label" data-v-5dd9d5f6><span class="visually-hidden" id="doc-outline-aria-label" data-v-5dd9d5f6> Table of Contents for current page </span><ul class="root" data-v-5dd9d5f6 data-v-1188541a><!--[--><!--]--></ul></nav></div></div><!--[--><!--]--><div class="spacer" data-v-cdc66372></div><!--[--><!--]--><!----><!--[--><!--]--><!--[--><!--]--></div></div></div></div><div class="content" data-v-c5936a1e><div class="content-container" data-v-c5936a1e><!--[--><!--]--><main class="main" data-v-c5936a1e><div style="position:relative;" class="vp-doc _FAB" data-v-c5936a1e><div><h1 id="fab" tabindex="-1">FAB <a class="header-anchor" href="#fab" aria-hidden="true">#</a></h1><p>Floating action buttons (FABs) help people take primary actions.</p><ul><li><p>Use a FAB for the most common or important action on a screen.</p></li><li><p>Make sure the icon in a FAB is clear and understandable.</p></li><li><p>FABs persist on the screen when content is scrolling.</p></li><li><p>Three styles: SecondaryFABStyle, SurfaceFABStyle and TertiaryFABStyle.</p></li></ul><p><img src="/assets/FABs.642ffa8f.png" alt=""></p><h2 id="examples" tabindex="-1">Examples <a class="header-anchor" href="#examples" aria-hidden="true">#</a></h2><div class="language-xml"><button title="Copy Code" class="copy"></button><span class="lang">xml</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;"><</span><span style="color:#F07178;">...</span></span>
<span class="line"><span style="color:#89DDFF;"> </span><span style="color:#C792EA;">xmlns</span><span style="color:#89DDFF;">:</span><span style="color:#C792EA;">icon</span><span style="color:#89DDFF;">=</span><span style="color:#89DDFF;">"</span><span style="color:#C3E88D;">clr-namespace:IconPacks.IconKind;assembly=IconPacks.Material</span><span style="color:#89DDFF;">"</span></span>
<span class="line"><span style="color:#89DDFF;">...></span></span>
<span class="line"></span>
<span class="line"><span style="color:#89DDFF;"><</span><span style="color:#F07178;">mdc</span><span style="color:#89DDFF;">:</span><span style="color:#F07178;">FAB</span><span style="color:#89DDFF;"> </span><span style="color:#C792EA;">IconData</span><span style="color:#89DDFF;">=</span><span style="color:#89DDFF;">"</span><span style="color:#C3E88D;">{Static icon:Material.Add}</span><span style="color:#89DDFF;">"</span><span style="color:#89DDFF;"> </span><span style="color:#C792EA;">Style</span><span style="color:#89DDFF;">=</span><span style="color:#89DDFF;">"</span><span style="color:#C3E88D;">{DynamicResource SecondaryFABStyle}</span><span style="color:#89DDFF;">"</span><span style="color:#89DDFF;"> /></span></span>
<span class="line"><span style="color:#89DDFF;"><</span><span style="color:#F07178;">mdc</span><span style="color:#89DDFF;">:</span><span style="color:#F07178;">FAB</span><span style="color:#89DDFF;"> </span><span style="color:#C792EA;">IconData</span><span style="color:#89DDFF;">=</span><span style="color:#89DDFF;">"</span><span style="color:#C3E88D;">{Static icon:Material.Add}</span><span style="color:#89DDFF;">"</span><span style="color:#89DDFF;"> </span><span style="color:#C792EA;">Style</span><span style="color:#89DDFF;">=</span><span style="color:#89DDFF;">"</span><span style="color:#C3E88D;">{DynamicResource SurfaceFABStyle}</span><span style="color:#89DDFF;">"</span><span style="color:#89DDFF;"> /></span></span>
<span class="line"><span style="color:#89DDFF;"><</span><span style="color:#F07178;">mdc</span><span style="color:#89DDFF;">:</span><span style="color:#F07178;">FAB</span><span style="color:#89DDFF;"> </span><span style="color:#C792EA;">IconData</span><span style="color:#89DDFF;">=</span><span style="color:#89DDFF;">"</span><span style="color:#C3E88D;">{Static icon:Material.Add}</span><span style="color:#89DDFF;">"</span><span style="color:#89DDFF;"> </span><span style="color:#C792EA;">Style</span><span style="color:#89DDFF;">=</span><span style="color:#89DDFF;">"</span><span style="color:#C3E88D;">{DynamicResource TertiaryFABStyle}</span><span style="color:#89DDFF;">"</span><span style="color:#89DDFF;"> /></span></span>
<span class="line"></span></code></pre></div><h2 id="properties" tabindex="-1">Properties <a class="header-anchor" href="#properties" aria-hidden="true">#</a></h2><table><thead><tr><th>name</th><th>type</th><th>defalut</th></tr></thead><tbody><tr><td>IconData</td><td>string</td><td></td></tr><tr><td>BackgroundColor</td><td>Color</td><td>style</td></tr><tr><td>Shape</td><td>Shape</td><td>Large</td></tr><tr><td>Elevation</td><td>Elevation</td><td>Level3</td></tr><tr><td>StateLayerColor</td><td>Color</td><td>style</td></tr><tr><td>RippleDuration</td><td>float</td><td>0.5</td></tr><tr><td>RippleEasing</td><td>Easing</td><td>SinInOut</td></tr><tr><td>ContextMenu</td><td>ContextMenu</td><td></td></tr><tr><td>Style</td><td>Style</td><td>Surface</td></tr><tr><td>Command</td><td>ICommand</td><td></td></tr><tr><td>CommandParameter</td><td>object</td><td></td></tr></tbody></table><h2 id="events" tabindex="-1">Events <a class="header-anchor" href="#events" aria-hidden="true">#</a></h2><table><thead><tr><th>name</th><th>type</th></tr></thead><tbody><tr><td>Clicked</td><td><code>EventHandler<TouchEventArgs></code></td></tr><tr><td>Pressed</td><td><code>EventHandler<TouchEventArgs></code></td></tr><tr><td>Released</td><td><code>EventHandler<TouchEventArgs></code></td></tr><tr><td>LongPressed</td><td><code>EventHandler<TouchEventArgs></code></td></tr><tr><td>RightClicked ( desktop only )</td><td><code>EventHandler<TouchEventArgs></code></td></tr></tbody></table></div></div></main><!--[--><!--]--><footer class="VPDocFooter" data-v-c5936a1e data-v-e033cd21><div class="edit-info" data-v-e033cd21><div class="edit-link" data-v-e033cd21><a class="VPLink link edit-link-button" href="https://github.com/mdc-maui/mdc-maui/tree/master/docs/FAB.md" target="_blank" rel="noreferrer" data-v-e033cd21 data-v-30c06bd3><!--[--><svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" class="edit-link-icon" data-v-e033cd21><path d="M18,23H4c-1.7,0-3-1.3-3-3V6c0-1.7,1.3-3,3-3h7c0.6,0,1,0.4,1,1s-0.4,1-1,1H4C3.4,5,3,5.4,3,6v14c0,0.6,0.4,1,1,1h14c0.6,0,1-0.4,1-1v-7c0-0.6,0.4-1,1-1s1,0.4,1,1v7C21,21.7,19.7,23,18,23z"></path><path d="M8,17c-0.3,0-0.5-0.1-0.7-0.3C7,16.5,6.9,16.1,7,15.8l1-4c0-0.2,0.1-0.3,0.3-0.5l9.5-9.5c1.2-1.2,3.2-1.2,4.4,0c1.2,1.2,1.2,3.2,0,4.4l-9.5,9.5c-0.1,0.1-0.3,0.2-0.5,0.3l-4,1C8.2,17,8.1,17,8,17zM9.9,12.5l-0.5,2.1l2.1-0.5l9.3-9.3c0.4-0.4,0.4-1.1,0-1.6c-0.4-0.4-1.2-0.4-1.6,0l0,0L9.9,12.5z M18.5,2.5L18.5,2.5L18.5,2.5z"></path></svg> Edit this page<!--]--><!----></a></div><div class="last-updated" data-v-e033cd21><p class="VPLastUpdated" data-v-e033cd21 data-v-355aa5ef>Last updated: <time datetime="2023-03-01T15:11:52.000Z" data-v-355aa5ef></time></p></div></div><div class="prev-next" data-v-e033cd21><div class="pager" data-v-e033cd21><a class="pager-link prev" href="/context-menu" data-v-e033cd21><span class="desc" data-v-e033cd21>Previous page</span><span class="title" data-v-e033cd21>ContextMenu</span></a></div><div class="has-prev pager" data-v-e033cd21><a class="pager-link next" href="/navigation-bar" data-v-e033cd21><span class="desc" data-v-e033cd21>Next page</span><span class="title" data-v-e033cd21>NavigationBar</span></a></div></div></footer><!--[--><!--]--></div></div></div></div></div><!----><!--[--><!--]--></div></div>
<script>__VP_HASH_MAP__ = JSON.parse("{\"combo-box.md\":\"72e40a7e\",\"context-menu.md\":\"d91e393e\",\"extended-fab.md\":\"930cdd80\",\"getting-started.md\":\"e1b4d927\",\"chips.md\":\"e3b400a3\",\"fab.md\":\"d7c67b07\",\"button.md\":\"42c2bcd3\",\"card.md\":\"e8fdbea0\",\"popup.md\":\"ff34799c\",\"navigation-drawer.md\":\"6815c8c5\",\"wrap-layout.md\":\"efac1da7\",\"index.md\":\"89abe32a\",\"text-field.md\":\"8bbf61e6\",\"sponsor.md\":\"399b7f51\",\"switch.md\":\"3eb2fa66\",\"icon-button.md\":\"1452d1b1\",\"menu-item.md\":\"ad6f68e2\",\"progress-indicator.md\":\"94b2f5cb\",\"checkbox.md\":\"a17f00f8\",\"radio-button.md\":\"efb5e5ff\",\"icon-packs.md\":\"ed197498\",\"navigation-bar.md\":\"9b4faaac\"}")</script>
<script type="module" async src="/assets/app.f5379453.js"></script>
</body>
</html>