project_note
Clone
https://git.tahinli.com/Tahinli/project_note.git
0 watching0 forksJavaScript3.6 MiBe100df4Tahinli1 month ago1 commit
| 1 | use |
| 2 | |
| 3 | |
| 4 | ; |
| 5 | |
| 6 | /// The direction a [`separator`] runs in. |
| 7 | /// |
| 8 | /// [`Default`] is `SeparatorOrientation::Horizontal`, used when no |
| 9 | /// orientation is given. |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | /// Classes for a separator that keeps its thickness in a flex layout. |
| 40 | const SEPARATOR: StaticClass = class!; |
| 41 | |
| 42 | /// A thin rule between groups of content. |
| 43 | /// |
| 44 | /// Uses an `<hr>` element. Its length comes from its container, so a vertical separator |
| 45 | /// needs a container with a height. Pass `aria-hidden="true"` for a purely decorative |
| 46 | /// rule. `attrs` are forwarded to the `<hr>`, with extra classes added to its classes. |
| 47 | /// |
| 48 | /// ```ignore |
| 49 | /// view! { |
| 50 | /// <div class="flex flex-col gap-4"> |
| 51 | /// <p>"Everyone with access to this workspace."</p> |
| 52 | /// separator() |
| 53 | /// <div class="flex h-5 items-center gap-3"> |
| 54 | /// <a href="/docs">"Docs"</a> |
| 55 | /// separator(orientation: SeparatorOrientation::Vertical) |
| 56 | /// <a href="/blog">"Blog"</a> |
| 57 | /// </div> |
| 58 | /// </div> |
| 59 | /// } |
| 60 | /// ``` |
| 61 | |
| 62 | pub async |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 | |
| 74 | |
| 75 | |
| 76 | |
| 77 |