-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.vue
42 lines (40 loc) · 1.26 KB
/
App.vue
1
2
3
4
5
6
7
8
9
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
40
41
42
<template>
<div>
<button
:aria-expanded="expanded ? 'expanded' : 'collapsed'"
type="button"
@click="expanded = !expanded"
>
<span aria-hidden="true">
{{ expanded ? 'Hide' : 'Show' }}
</span>
Content
</button>
<canon-revealer>
<div v-show="expanded">
<h1>Whatever content you want!</h1>
<p>Content that you need, but most people do not need to read is the most common legitimate reason you should hide content in this way. Think hard before hiding content. Does it need to be there at all? Are you hiding it because of "screen real estate" even thought HTML can be infinitely long? These are not good reasons.</p>
<img
src='http://placeskull.com/400'
alt='Skull placeholder image'
/>
</div>
</canon-revealer>
</div>
</template>
<script>
import CanonRevealer from './src/Revealer';
export default {
name: 'App',
components: {
CanonRevealer,
},
data() {
return {
expanded: false,
};
},
};
</script>
<style lang="scss" scoped>
</style>