MCPcopy
hub / github.com/react-bootstrap/react-bootstrap / useBootstrapPrefix

Function useBootstrapPrefix

src/ThemeProvider.tsx:78–84  ·  view source on GitHub ↗
(
  prefix: string | undefined,
  defaultPrefix: string,
)

Source from the content-addressed store, hash-verified

76} as any;
77
78export function useBootstrapPrefix(
79 prefix: string | undefined,
80 defaultPrefix: string,
81): string {
82 const { prefixes } = useContext(ThemeContext);
83 return prefix || prefixes[defaultPrefix] || defaultPrefix;
84}
85
86export function useBootstrapBreakpoints() {
87 const { breakpoints } = useContext(ThemeContext);

Callers 15

Toast.tsxFile · 0.90
AccordionItem.tsxFile · 0.90
PopoverHeader.tsxFile · 0.90
Nav.tsxFile · 0.90
CardGroup.tsxFile · 0.90
CardText.tsxFile · 0.90
ModalHeader.tsxFile · 0.90
PopoverBody.tsxFile · 0.90
Popover.tsxFile · 0.90
Modal.tsxFile · 0.90
Button.tsxFile · 0.90
Tooltip.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…