-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(omi-templates): breadcrumb & icon & switch
- Loading branch information
Showing
8 changed files
with
156 additions
and
35 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
packages/omi-templates/src/pages/components/breadcrumb.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import '@/components/omiu/breadcrumb' | ||
|
||
export function Questionnaire() { | ||
return ( | ||
<div class="max-w-[800px] mx-auto text-left px-4 py-10"> | ||
|
||
<h1 class="text-3xl font-bold my-6">Breadcrumb 面包屑</h1> | ||
<p>显示当前页面在系统层级结构的位置,并能返回之前任意层级的页面。</p> | ||
|
||
<h2 class="text-2xl font-bold my-6">默认</h2> | ||
<div class="flex gap-6 items-center"> | ||
<o-breadcrumb | ||
items={[ | ||
{ | ||
label: 'Home', | ||
icon: 'home', | ||
href: '#/', | ||
}, | ||
{ | ||
label: 'Project', | ||
}, | ||
{ | ||
label: 'OMI', | ||
}, | ||
]} | ||
></o-breadcrumb> | ||
</div> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.