> For the complete documentation index, see [llms.txt](https://docs.lowcoder.cloud/lowcoder-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lowcoder.cloud/lowcoder-documentation/build-applications/app-editor/visual-components/layout-and-navigation/floating-button.md).

# Floating Button

In Lowcoder, the **Floating Button** component provides a customizable button that hovers over the application's interface, offering quick access to primary actions without obstructing content.

<figure><img src="/files/NFxQXnqt4y0tFqd1oo9X" alt=""><figcaption></figcaption></figure>

**Key Features:**

1. **Positioning:** The Floating Button can be positioned anywhere on the screen, typically anchored to a corner, ensuring it remains accessible yet unobtrusive.
2. **Customisation:** You can personalize the button's appearance by selecting icons, colors, and sizes to align with your application's design aesthetics.
3. **Event Handling:** Assign specific actions to the button, such as navigating to different screens, triggering queries, or executing custom JavaScript functions, enhancing user interaction.
4. **Integration:** The Floating Button seamlessly integrates with other Lowcoder components, allowing for coordinated actions and a cohesive user experience.

### Demo about Floating Button

{% embed url="<https://demos.lowcoder.cloud/demo/cly5fkxgm03a4nyarhhf42wfj>" %}

### Component Playground

On Component Playground, you can interact with the Floating Button component and explore it's Properties, Events and Methods. Play with different Styling properties to see the effect on the Floating Button component.

{% embed url="<https://app.lowcoder.cloud/playground/floatingButton/1>" %}

### Component Auto-Docs

In the Auto-Docs of Floating Button component, we have shown how to use different properties of the  component. It also includes the Styling properties of the component.

{% embed url="<https://app.lowcoder.cloud/components/floatingButton>" %}

#### Properties of the Floating Button component <a href="#properties-of-the-table" id="properties-of-the-table"></a>

These properties are accessible in {{ }} notations, as well as in JavaScript Queries.

<table><thead><tr><th width="176.38671875">Property Name</th><th width="114.9921875">Type</th><th>Description</th></tr></thead><tbody><tr><td>hidden</td><td>Boolean</td><td>Returns True or False based on whether the Floating button component is hidden or not</td></tr><tr><td>value</td><td>String</td><td>Returns the Value of the Floating button component</td></tr></tbody></table>

#### Methods <a href="#methods" id="methods"></a>

You have the capability to engage with components via their respective methods, which can be accessed by their designated names within any segment where JavaScript is utilised. Additionally, these components can be activated through the 'Control Component' action, which is triggered in response to specific events.

**setValue() :**&#x20;

floatingButton1.setValue() method sets the Floating button's Value property.

```javascript
floatingButton1.setValue();
```

**clearValue() :**&#x20;

floatingButton1.clearValue() clears the Floating button's Value property and empties the current value from the component.

```javascript
floatingButton1.clearValue();
```

**resetValue() :**&#x20;

floatingButton1.resetValue()  method resets the Floating button's value property to the default value of the component.

```javascript
floatingButton1.resetValue();
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.lowcoder.cloud/lowcoder-documentation/build-applications/app-editor/visual-components/layout-and-navigation/floating-button.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
