breakpoint
Generate media query css interpolations.
breakpoint.up
- Targets screens sizes larger than the selected breakpoint.breakpoint.down
- Targets screens sizes equal to or smaller than the selected breakpoint.breakpoint.only
- Targets only selected screen size
Default breakpoints (min-width):
phone | tablet | desktop |
---|---|---|
0px | 480px | 780px |
import styled from 'styled-components'import {themeGet} from 'styled-system'import {breakpoint} from '@emcasa/ui/lib/styles'import Text from '@emcasa/ui-dom/components/Text'const ExampleText = styled(Text)``
Hello world