Skip to main content
cngx-src documentation

withCloseIcon

Functionui/feedback

projects/ui/feedback/config/feedback-config.ts

Description#

Replace the built-in X SVG in all close/dismiss buttons globally.

The component receives no inputs - it should render a single icon. Per-instance override via content projection on CngxCloseButton takes precedence.

provideFeedback(withCloseIcon(MyLucideXIcon))

Signature#

withCloseIcon(component: Type)

Parameters#

@paramcomponentType

Returns#

FeedbackFeature