UNPKG

scrabble-solver

Version:

Scrabble Solver 2 - Free, open-source, cross-platform, multi-language analysis tool for Scrabble, Scrabble Duel, Super Scrabble, Letter League, Crossplay, Literaki, and Kelimelik. Quickly find the top-scoring words using the given board and tiles.

18 lines (15 loc) 436 B
import { autoUpdate, offset, shift, useFloating } from '@floating-ui/react'; import { BOARD_CELL_ACTIONS_OFFSET } from '@/parameters'; export const useFloatingInputPrompt = () => { return useFloating({ middleware: [ offset({ mainAxis: -BOARD_CELL_ACTIONS_OFFSET, alignmentAxis: BOARD_CELL_ACTIONS_OFFSET, }), shift(), ], placement: 'top', whileElementsMounted: autoUpdate, }); };