This commit is contained in:
parent
e3835f6577
commit
f70df99f09
7 changed files with 22 additions and 21 deletions
10
src/tab/components/button.html
Normal file
10
src/tab/components/button.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
<script props>
|
||||
module.exports = {
|
||||
page: props.page,
|
||||
aria_selected: Boolean(props.selected)
|
||||
}
|
||||
</script>
|
||||
<a href="/src/{{page}}" hx-get="/partials/{{page}}" hx-push-url="/{{page}}" role="tab" aria-selected="{{aria_selected}}"
|
||||
aria-controls="tab-content">
|
||||
<yield></yield>
|
||||
</a>
|
Loading…
Add table
Add a link
Reference in a new issue