# useButton Hook that provides data attributes and prop spreading for button elements. ## Usage ```tsx import { useButton } from '@primereact/headless/button'; ``` ```tsx const { rootProps } = useButton(); return ; ``` `useButton` returns spread-ready `rootProps` with data attributes for styling, see [Primitive](/docs/primitive/components/button) for a component-based API. ## Features - **Spread-ready root props**, a single `rootProps` object with `data-scope` and `data-part` attributes ready to spread on any element - **Stateless**, no internal state; native `