Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 7af2bd0

Browse files
refactor(c-media-query): update Show/Hide examples
1 parent 07623c9 commit 7af2bd0

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

packages/c-media-query/examples/show-hide.vue

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
<template>
22
<div>
3-
<c-show above="md">
4-
<p>This is shown above the 'md' breakpoint</p>
3+
<c-show above="sm">
4+
<div>Hey! I'll show above sm (480px)</div>
55
</c-show>
6-
<c-hide above="lg">
7-
<p>This hides above the 'lg' breakpoint</p>
6+
<c-hide below="md">
7+
<div>Hello!! I'll hide below md (768px)</div>
88
</c-hide>
9+
<c-hide breakpoint="(max-width: 400px)">
10+
<div>Hello!! I'll be hidden at or below 400px</div>
11+
</c-hide>
12+
<c-show breakpoint="(max-width: 400px)">
13+
<div>Hello!! I'll be shown at or below 400px</div>
14+
</c-show>
915
</div>
1016
</template>
1117
<script setup lang="ts">

0 commit comments

Comments
 (0)