MCPcopy Create free account
hub / github.com/react-dates/react-dates / noflip

Function noflip

src/utils/noflip.js:6–11  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

4// flipped in RTL contexts. This should be used only in situations where the style must remain
5// unflipped regardless of direction context. See: https://github.com/kentcdodds/rtl-css-js#usage
6export default function noflip(value) {
7 if (typeof value === 'number') return `${value}px ${NOFLIP}`;
8 if (typeof value === 'string') return `${value} ${NOFLIP}`;
9
10 throw new TypeError('noflip expects a string or a number');
11}

Callers 9

noflip_spec.jsFile · 0.85
DateInput.jsxFile · 0.85
DayPicker.jsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…