# Float URL: /react/components/layout/float Source: https://github.com/daangn/seed-design/blob/dev/docs/content/react/components/(foundation)/layout/float.mdx The Float component is used to place elements fixed at a specific position. ## Preview ```tsx import { Box, Float } from "@seed-design/react"; import { ContextualFloatingButton } from "seed-design/ui/contextual-floating-button"; export default function FloatPreview() { return ( Top Start Top Center Top End Middle Start Middle Center Middle End Bottom Start Bottom Center Bottom End ); } ``` ## Props ## Examples ### Offset X You can adjust position in the left-right direction using the `offsetX` property. In `start` and `middle`, adjustment is to the right; in `end`, adjustment is to the left. ```tsx import { Box, Float } from "@seed-design/react"; import { ContextualFloatingButton } from "seed-design/ui/contextual-floating-button"; export default function FloatOffsetX() { return ( Middle Start Middle Center Middle End ); } ``` ### Offset Y You can adjust position in the top-bottom direction using the `offsetY` property. In `top` and `middle`, adjustment is downward; in `bottom`, adjustment is upward. ```tsx import { Box, Float } from "@seed-design/react"; import { ContextualFloatingButton } from "seed-design/ui/contextual-floating-button"; export default function FloatOffsetY() { return ( Top Center Middle Center Bottom Center ); } ```