TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Where can I find higher-level UI components?

4 点作者 miguelrochefort大约 3 年前
There exists a lot of high-quality UI component libraries such as MUI, Bootstrap, ANT, Grommet, Chakra, Semantic UI, etc. These components typically map to primitive types:<p><pre><code> boolean -&gt; checkbox &#x2F; toggle button &#x2F; visibility integer -&gt; numeric input &#x2F; slider enum -&gt; drop down menu &#x2F; radio buttons string -&gt; text field date -&gt; date picker array -&gt; list view matrix -&gt; table view bitmap -&gt; image async promise -&gt; loading indicator side effect -&gt; button </code></pre> But what about higher-level types, classes, and schemas? Where can I find UI components that map to a person, a place, an event, a product, a transaction, a movie, an album, a book, an article, or a comment? Shouldn&#x27;t higher-level UI components exist for popular ontologies such as Schema.org? It seems absurd to manually reimplement these templates in every project, yet I can&#x27;t seem to find any comprehensive library of such components.<p>Have I been searching in the wrong place or do such higher-level UI component libraries actually don&#x27;t exist?

2 条评论

miguelrochefort大约 3 年前
The closest attempt at creating a directory of standard platform-agnostic UI templates I could find is this repository [0] associated with the Adaptive Cards project [1]. Unfortunately, it only contains a handful of templates.<p>In practice, Google&#x27;s Rich Results [2] seem to provide the most extensive set of templates aligned with Schema.org, but documentation is limited and they&#x27;re not open source. Similarly, Wikipedia features thousands of high-quality infobox templates [3], but they&#x27;re not readily usable outside of Wikipedia and might have limited utility in non-encyclopedic contexts.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;microsoft&#x2F;adaptivecards-templates" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;microsoft&#x2F;adaptivecards-templates</a><p>[1] <a href="https:&#x2F;&#x2F;adaptivecards.io" rel="nofollow">https:&#x2F;&#x2F;adaptivecards.io</a><p>[2] <a href="https:&#x2F;&#x2F;developers.google.com&#x2F;search&#x2F;docs&#x2F;advanced&#x2F;structured-data&#x2F;search-gallery" rel="nofollow">https:&#x2F;&#x2F;developers.google.com&#x2F;search&#x2F;docs&#x2F;advanced&#x2F;structure...</a><p>[3] <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Wikipedia:List_of_infoboxes" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Wikipedia:List_of_infoboxes</a>
PaulHoule大约 3 年前
Aren&#x27;t these idiosyncratic?<p>For instance an online bookstore might have the following kinds of &quot;person&quot;:<p><pre><code> an administrative user a customer an author a person who a book is about a contact at a vendor </code></pre> the same is true for some other application just the list of &quot;classes&quot; and essential attributes of those classes is different.
评论 #31101250 未加载