Components are documented on the VitePress site with various working demos and associated code samples:
The intention is to give library users a realistic code sample they can copy and paste into their own codebase to use as a starting point.
To facilitate this process, we should add a "copy" button to the code sample that copies the entire code sample to the clipboard. Note that copytext behavior is included in a MediaWiki core widget called CopyTextLayout, which was replicated as a Vue component in MediaSearch—we may want to pull the copytext behavior into a composable for easy reuse.