Floating Input

Add a floating input element from your extension onto the web page. You can build extensions like auto complete, ChatGPT rewrites etc..

You will get the value entered into the input box and the position of the floating element. The position is taken care of to always be visible in the view port.

Install

Run these from your react project. cs-root, popup etc..

Install floating-ui

npm install @floating-ui/react

Add the floating input component

npx ChromeKit-Org/cli add-component floating-input

Copy the common directory into your react project's src directory.

Usage

Props

Example:

Checkout an example of floating-input here https://github.com/ChromeKit-Org/docs/tree/main/floating-input

Last updated