Component docs
Loading
import { AccessibleIcon } from "@pixxl-tools/components";
// In Server Components:
import { AccessibleIcon } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
children (required) | ReactElement | — | — |
label | string | — | Visible label (also the accessible name). |
childrenrequiredReactElement
labelstring
Visible label (also the accessible name).
Other props are passed to the root element (HTMLAttributes<HTMLSpanElement>), including className, style, id and aria-* attributes.
<AccessibleIcon label="Search"><SearchIcon /></AccessibleIcon>