# Contextual Floating Button URL: /components/contextual-floating-button Source: https://github.com/daangn/seed-design/blob/dev/docs/content/components/contextual-floating-button.mdx A button that floats above the screen for a supplementary action that appears only in specific situations. ## Anatomy ![Anatomy image of Contextual Floating Button. Consists of Container, Icon, and Label.]() Contextual Floating Button consists of an Icon, a Label, and a Container wrapping the content. ## Properties ### Tone ![Contextual Floating Button Tone Property - Solid, Layer]() Contextual Floating Button has two styles: Solid and Layer. It can be used depending on the visual prominence needed. ### Layout ![Contextual Floating Button Layout Property - Icon First, Icon Only]() The Layer style Contextual Floating Button can use the Icon Only layout. ### State ![Contextual Floating Button State - Enabled, Pressed, Loading, Disabled]() Has Enabled, Pressed, Loading, and Disabled states. ## Guidelines ### Using Contextual Floating Button ![Example of using Contextual Floating Button]() Contextual Floating Button is a secondary action button that floats above the screen and is conditionally shown. Unlike [Floating Action Button](/components/floating-action-button), which handles the screen's primary action, it appears flexibly depending on a specific context or user interaction. ### Position of Contextual Floating Button ![Example of Contextual Floating Button position]() ![Spacing between Contextual Floating Button and fixed elements]() Contextual Floating Button is not fixed to a specific position and has the flexibility to be freely placed near content. It can also display multiple buttons at the same time within a single screen. If there is a fixed element on the screen, spacing must be secured relative to that fixed element. ### Tone ![Example of Contextual Floating Button Tone - Solid and Layer]() Contextual Floating Button has two styles: Solid and Layer. They can be chosen depending on the situation. | Tone | Usage situation | | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | | **Solid** | Suitable for an emphasized secondary action that contrasts with the background, when high importance or a strong contextual call to action is needed. | | **Layer** | Gently induces an action without visual burden. Blends well into an inline flow and avoids excessive attention. | ### Length of the Label ![Example of Contextual Floating Button Label length]() If the Label becomes long, it wraps to a new line. Keep it concise so it can be displayed on a single line. ## Specification Component spec (JSON): /rootage/components/contextual-floating-button.json