Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,6 @@
[submodule "browser-rs"]
path = browser-rs
url = https://github.com/opensass/browser-rs
[submodule "hero"]
path = hero
url = https://github.com/opensass/hero
14 changes: 13 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ members = [
"alert-rs",
"browser-rs",
"eld",
"hero",
"i18n-rs",
"image-rs",
"input-rs",
Expand Down
1 change: 1 addition & 0 deletions hero
Submodule hero added at e07519
2 changes: 2 additions & 0 deletions src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
- [Spinner (TODO)]()
- [Toast (TODO)]()
- [Tooltip (TODO)]()
- [Landing Page]()
- [Hero](./components/hero.md)
- [Navigation]()
- [Breadcrumbs (TODO)]()
- [Browser](./components/browser-rs.md)
Expand Down
3 changes: 2 additions & 1 deletion src/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
| Data Entry | `Checkbox`, `Form`, `Input`, `Listbox`, `OTP`, `Radio`, `Select`, `Slider`, `Switch` |
| Date & Time | `Calendar`, `Date`, `Time Input` |
| Feedback | `Alert`, `Progress`, `Skeleton`, `Spinner`, `Toast`, `Tooltip` |
| Navigation | `Breadcrumbs`, `Browser` `Navbar`, `Pagination`, `Sidebar`, `Tabs` |
| Landing Page | `Hero` |
| Navigation | `Breadcrumbs`, `Browser`, `Navbar`, `Pagination`, `Sidebar`, `Tabs` |
| Overlays | `Drawer`, `Dropdown`, `Modal`, `Popover` |
| Structure | `Divider`, `Spacer` |
| Utilities | `Autocomplete`, `Kbd`, `OTP` |
Expand Down
52 changes: 52 additions & 0 deletions src/components/hero.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Hero

{{#tabs }}

{{#tab name="Yew" }}

<a
href="https://github.com/opensass/hero"
class="mdbook-button"
target="_blank"
rel="noopener noreferrer"
title="Edit this component on GitHub"
role="button"
aria-label="Edit Component on GitHub">Edit Component
</a>

{{#include ../../hero/YEW.md}}

## Usage

<iframe
src="https://hero-rs.netlify.app"
title="Hero Yew Examples"
loading="lazy"
allowfullscreen
aria-label="Live Yew example using Hero"
>
</iframe>

## CLI Usage

You can import Hero directly into your project to customize and modify it using the [opensass cli](https://github.com/opensass/cli):

```sh
os add hero dio
```

{{#endtab}}

{{#tab name="Dioxus"}}

TODO

{{#endtab}}

{{#tab name="Leptos"}}

TODO

{{#endtab }}

{{#endtabs }}