feat(docs): add component documentation entries and refactor dialog

rendering
This commit is contained in:
hyper
2026-06-30 18:47:14 +08:00
parent 0886a406bb
commit d72d4e7bde
15 changed files with 402 additions and 343 deletions
+2 -9
View File
@@ -150,19 +150,12 @@ const DocContent: Component<{ entry: DocEntry }> = (props) => {
</div>
</Show>
<div class="mb-6">
<div class="prose-sm max-w-none">
<h3 class="text-sm font-semibold text-gray-500 uppercase mb-2"></h3>
<div class="bg-gray-50 border border-gray-200 rounded-lg p-4 text-sm leading-relaxed whitespace-pre-wrap font-mono text-gray-800">
{e.examples}
{e.body}
</div>
</div>
<div>
<h3 class="text-sm font-semibold text-gray-500 uppercase mb-2">
使
</h3>
<p class="text-sm text-gray-600">{e.usage}</p>
</div>
</div>
);
};