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

Commit 016492a

Browse files
docs(c-media-query): add JSDocs for c-show and c-hide
1 parent 0e5f624 commit 016492a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

packages/c-media-query/src/c-hide.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ import { CShowProps } from "./c-show"
77

88
export interface CHideProps extends CShowProps {}
99

10+
/**
11+
* Wrapper component to hide child elements based on breakpoint value
12+
*/
1013
export const CHide: ComponentWithProps<CHideProps> = defineComponent({
1114
props: {
1215
breakpoint: {

packages/c-media-query/src/c-show.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ export interface CShowProps {
2222
above?: string
2323
}
2424

25+
/**
26+
* Wrapper component to show child elements based on breakpoint value
27+
*/
2528
export const CShow: ComponentWithProps<CShowProps> = defineComponent({
2629
props: {
2730
breakpoint: {

0 commit comments

Comments
 (0)