File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -80,8 +80,10 @@ function IconographyPage() {
8080
8181 const shown = filtered . slice ( 0 , visible )
8282
83+ // The registry keys icons by their bare name, but `NameIcon` is the export
84+ // callers actually import — copy and advertise that one.
8385 const handleCopy = React . useCallback ( async ( name : string ) => {
84- await copyTextToClipboard ( `<${ name } />` )
86+ await copyTextToClipboard ( `<${ name } Icon />` )
8587 setCopied ( name )
8688 window . setTimeout ( ( ) => setCopied ( null ) , 1200 )
8789 } , [ ] )
@@ -187,7 +189,7 @@ function IconographyPage() {
187189 key = { name }
188190 type = "button"
189191 onClick = { ( ) => handleCopy ( name ) }
190- title = { `Copy <${ name } />` }
192+ title = { `Copy <${ name } Icon />` }
191193 className = "group flex flex-col items-center gap-2.5 bg-background-default p-5 text-center transition-colors hover:bg-background-subtle"
192194 >
193195 < span className = "flex h-12 items-center justify-center" >
You can’t perform that action at this time.
0 commit comments