Docs work

This commit is contained in:
Dragory 2019-10-25 21:45:18 +03:00
parent 6a1ec188a6
commit d9b65590d8
10 changed files with 167 additions and 91 deletions

View file

@ -1,6 +1,13 @@
<template>
<div class="expandable mb-4 bg-gray-800 border border-gray-600 rounded overflow-hidden" ref="root" v-bind:class="{'shadow-xl': isOpen}">
<div role="button" class="title p-2" v-on:click="toggle">
<div class="expandable mb-4 bg-gray-800 border border-gray-600 rounded overflow-hidden"
ref="root"
v-bind:class="{ 'shadow-xl': isOpen}">
<div role="button"
class="title p-2 focus:bg-gray-700"
v-on:click="toggle"
v-on:keydown.space="$event.preventDefault()"
v-on:keyup.space="toggle"
tabindex="0">
<chevron-down class="icon" v-bind:class="{'icon-open': isOpen}" />
<span class="title-text"><slot name="title"></slot></span>
</div>