MCPcopy Index your code
hub / github.com/react-bootstrap/react-bootstrap / isVisible

Function isVisible

src/Carousel.tsx:182–199  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

180};
181
182function isVisible(element) {
183 if (
184 !element ||
185 !element.style ||
186 !element.parentNode ||
187 !element.parentNode.style
188 ) {
189 return false;
190 }
191
192 const elementStyle = getComputedStyle(element);
193
194 return (
195 elementStyle.display !== 'none' &&
196 elementStyle.visibility !== 'hidden' &&
197 getComputedStyle(element.parentNode).display !== 'none'
198 );
199}
200
201const Carousel: BsPrefixRefForwardingComponent<'div', CarouselProps> =
202 // eslint-disable-next-line react/display-name

Callers 1

Carousel.tsxFile · 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…