Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
369 B
PHP
Raw Permalink Normal View History

@props(['name', 'value' => null])
<div x-data="{
id: '',
name: {{ Js::from($name) }},
value: {{ Js::from($value ?: $name) }}
}"
x-show="value === activeTab"
role="tabpanel"
:aria-labelledby="`tab-${id}`"
:id="`tab-panel-${id}`"
x-init="id = registerTab(name, value)"
{{ $attributes }}
>
{{ $slot }}
</div>