# Button An unstyled button component with compound composition and group support. ## Features - Single component with `ButtonGroup` for grouping multiple buttons - Native ` ``` ## Behavior ### Icon Composition Place icon components as children alongside text. DOM order determines icon position. ```tsx import { Check } from '@primeicons/react/check'; /* Icon before text */ ; /* Icon after text */ ; ``` ### Polymorphic Rendering Use `as` to change the rendered HTML element or use a custom React component. ```tsx ``` ### Render Function Children `Button` accepts a render function as children, providing access to the component instance. ```tsx ``` ## Pass Through ## API ### Button | Attribute | Value | | ------------ | ---------- | | `data-scope` | `"button"` | | `data-part` | `"root"` | | Label | Type | Description | |:------|:------|:------| | root | ButtonPassThroughType> | Used to pass attributes to the root's DOM element. | ## Accessibility ### Screen Reader `Button` renders a native `