# Floating Action Button URL: /components/floating-action-button Source: https://github.com/daangn/seed-design/blob/dev/docs/content/components/floating-action-button.mdx A button that floats on the screen and performs the primary action. ## Anatomy ![Anatomy image of Floating Action Button. Consists of Icon, Label, and Container.]() Floating Action Button consists of an Icon, a Label, and a Container wrapping the content. ## Properties ### Type ![Floating Action Button Type - Button Type]() ![Floating Action Button Type - Menu Type]() Floating Action Button is divided into two types: Button and Menu. For the Button type, the action is executed immediately on click; for the Menu type, a menu expands on click. The Menu type is used when the Floating Action Button needs multiple selectable options. In the Enabled state, the two types look the same, but the menu-appearance behavior differs, so use them with care. ### State ![Floating Action Button State - Enabled, Pressed]() Floating Action Button has Enabled and Pressed states. ### Extended Property ![Floating Action Button Extended Property]() Turning on the Extended Property allows text to be shown. This clearly expresses the function in text, increasing intuitiveness. ### Scroll Behavior ![Floating Action Button Scroll Behavior]() An Extended-state Floating Action Button can hide its label when scrolling down. The label reappears when scrolling back up. ## Guidelines ### Position of Floating Action Button ![Example of a Floating Action Button with 20 margin from the screen's right edge and bottom fixed element]() ![Example of providing multiple options as Menu Type]() Floating Action Button must be positioned at the bottom right of the screen, and only one can exist as the screen's primary action. It must have a 20 margin from the screen edge, and if there is a fixed element at the bottom, a 20 margin must be secured relative to that fixed element. If multiple options are needed, the Menu Type can be used. ### Positional relationship with Snackbar ![Positional relationship between Floating Action Button and Snackbar]() When a [Snackbar](/components/snackbar) appears while a Floating Action Button is on screen, the Snackbar is always shown above the Floating Action Button. ### Label ![Example of using 'Write' as the Floating Action Button label]() Using the Extended option can increase intuitiveness by specifying the function in text. Be careful not to let the text label become too long. ### Color ![Example of using the Floating Action Button's color as-is]() Floating Action Button represents the most important action on a screen; only one can be shown, and its color cannot be changed. When expressing a lower-importance secondary action (White, Neutral, etc.), use [Contextual Floating Button](/components/contextual-floating-button) instead. ## Specification Component spec (JSON): /rootage/components/floating-action-button.json