MCPcopy
hub / github.com/intentui/intentui / DialogCloseIcon

Function DialogCloseIcon

src/components/ui/dialog.tsx:122–134  ·  view source on GitHub ↗
({ className, ...props }: CloseButtonIndicatorProps)

Source from the content-addressed store, hash-verified

120}
121
122const DialogCloseIcon = ({ className, ...props }: CloseButtonIndicatorProps) => {
123 return props.isDismissable ? (
124 <PrimitiveButton
125 slot="close"
126 className={cx(
127 'close absolute end-1 top-1 z-50 grid size-8 place-content-center rounded-xl hover:bg-secondary focus:bg-secondary focus:outline-hidden focus-visible:ring-1 focus-visible:ring-primary sm:end-2 sm:top-2 sm:size-7 sm:rounded-md',
128 className
129 )}
130 >
131 <XMarkIcon className="size-4" />
132 </PrimitiveButton>
133 ) : null
134}
135
136export type {
137 CloseButtonIndicatorProps,

Callers

nothing calls this directly

Calls 1

cxFunction · 0.90

Tested by

no test coverage detected