project_note
Clone
https://git.tahinli.com/Tahinli/project_note.git
0 watching0 forksRust3.6 MiBc49f5e7Tahinli1 month ago2 commits
| 1 | use |
| 2 | |
| 3 | |
| 4 | ; |
| 5 | |
| 6 | /// Classes that draw a key label in a bordered box. |
| 7 | const KBD: StaticClass = class!; |
| 8 | |
| 9 | /// A keyboard key label rendered as `<kbd>`. |
| 10 | /// |
| 11 | /// Pass the key name as children and use [`kbd_group`] for a shortcut with several |
| 12 | /// keys. `attrs` are forwarded to the `<kbd>`, with extra classes added to its classes. |
| 13 | /// |
| 14 | /// ```ignore |
| 15 | /// view! { |
| 16 | /// kbd_group(kbd("Ctrl") kbd("K")) |
| 17 | /// } |
| 18 | /// ``` |
| 19 | |
| 20 | pub async |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | /// A row of key labels for one keyboard shortcut. The keys stay on one line. |
| 28 | |
| 29 | pub async |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 |