UXInteract / task_021 /solution /code /index.html
DojiSum's picture
Publish the current 141-task UXInteract release
ef987bb verified
Raw History Blame Contribute Delete
1.03 kB
<!doctype html>
<html><head><meta charset="utf-8"><title>Component Names</title></head><body>
<div data-testid="app-shell" data-component-name="AppShell"><aside data-testid="navigation-sidebar" data-component-name="NavigationSidebar">Navigation</aside><main data-testid="main-content" data-component-name="MainContentArea"><section data-testid="prompt-response-block" data-component-name="PromptResponseBlock"><textarea data-testid="prompt-input" data-component-name="PromptInput"></textarea><div data-testid="ai-content-area" data-component-name="AIContentArea">Response</div></section></main></div>
<script>window.componentRegistry={AppShell:'app-shell',NavigationSidebar:'navigation-sidebar',MainContentArea:'main-content',PromptResponseBlock:'prompt-response-block',PromptInput:'prompt-input',AIContentArea:'ai-content-area'};window.getComponentByName=function(name){const id=window.componentRegistry[name];return typeof id==='string'?document.querySelector('[data-testid="'+CSS.escape(id)+'"]'):null;};</script>
</body></html>