Skip to content

Commit f71e513

Browse files
a81n9antfu
andauthored
feat(useBreakpoints): add breakpoints for ElementUI/ElementPlus (#4238)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
1 parent ae542c6 commit f71e513

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

packages/core/useBreakpoints/breakpoints.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,17 @@ export const breakpointsPrimeFlex = {
128128
lg: 992,
129129
xl: 1200,
130130
}
131+
132+
/**
133+
* Breakpoints from ElementUI/ElementPlus
134+
*
135+
* @see https://element.eleme.io/#/en-US/component/layout
136+
* @see https://element-plus.org/en-US/component/layout.html
137+
*/
138+
export const breakpointsElement = {
139+
xs: 0,
140+
sm: 768,
141+
md: 992,
142+
lg: 1200,
143+
xl: 1920,
144+
}

packages/core/useBreakpoints/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ const laptop = breakpoints.between('laptop', 'desktop')
5555
- Sematic: `breakpointsSematic`
5656
- Master CSS: `breakpointsMasterCss`
5757
- Prime Flex: `breakpointsPrimeFlex`
58+
- ElementUI / ElementPlus: `breakpointsElement`
5859

5960
_Breakpoint presets are deliberately not auto-imported, as they do not start with `use` to have the scope of VueUse. They have to be explicitly imported:_
6061

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy