Overview
LightIconButton composes IconButton with a ghost surface and a small size. Supply an accessible name and decorative icon content.
Usage
size="xs" and are 20px.
Visual options
Compare emphasis at small and medium sizes, including selected, loading, and disabled states.State and interaction
Button owns keyboard activation, disabled and loading behavior, refs, native attributes, and render composition. The native default istype="button". Use aria-pressed for toggles and aria-expanded for disclosures. The application owns these states and can set color="accent" to highlight a selected action. Keyboard focus uses the shared focus ring.
Tooltip text is optional and does not replace an accessible name from aria-label or aria-labelledby. Set href for a link. For application-owned routing, supply render, nativeButton={false}, and role="link".
Updating existing controls
ImportLightIconButton from twenty-ui/components. Replace Icon={IconPlus} with <IconPlus /> children, small/medium with sm/md, accent="tertiary" with emphasis="subtle", and testId with data-testid. Replace synthetic active and focus flags with semantic state and actual keyboard focus.
Replace LightIconButtonGroup with ButtonGroup using attached={false} and explicit children. Set disabled on unavailable actions, including actions without a click handler. Wrappers and tooltip triggers can remain around each child.
Row actions
Use a passive ListItem with anactions slot for independent controls. Pass one LightIconButton directly, or use ButtonGroup for multiple buttons. Each button owns its accessible name, click handler, and disabled state. Wrap dropdown triggers directly around the button.
onClick handler can remain enabled when a surrounding dropdown owns its interaction. Set disabled explicitly for unavailable buttons. Keep independent controls beside an actionable ListItemButton so each retains its own focus and activation.
Props
CSS class applied to the element, or a function that
returns a class based on the component’s state.
Semantic color of the button.
inherit uses the surrounding text color for the label, icons, loader, and outline border, with translucent black interaction surfaces. It supports outline, ghost, soft, and link. Resolving solid with inherit throws, including appearance inherited from ButtonGroup and wrapper defaults.Standard secondary text or subtle tertiary text. Semantic colors and solid surfaces keep their own colors.
Destination URL. Renders a native anchor when
render is omitted unless nativeButton is explicitly true. Custom renderers retain their own element contract.Whether the rendered root is a native button. Defaults to true for custom renderers. The built-in
href anchor defaults to false; an explicit value takes precedence.ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, ButtonState>
Caller-supplied root element or renderer. Native attributes, handlers, event details, and refs reach the rendered root. Use
nativeButton={false} and role="link" for a custom navigation anchor. Router integration belongs to the caller.Style applied to the element, or a function that
returns a style object based on the component’s state.
Preferred placement of the tooltip relative to the button.