Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render(): JSX.Element {
const {
className,
expandedClassName,
expanded,
toggleExpanded,
...rest
} = this.props;
const headingClassName = classnames(className, {
[String(expandedClassName)]: expandedClassName && expanded,
});
return (
<div data-accordion-component="AccordionItemHeading">
);
}
}</div>
{items.map(({ heading, name, href, content }: any) => (
<li>
{heading && <div>{name}</div>}
{!heading && (
<a href="{href}">
{name}
</a>
)}
{content}
</li>
))}
render(): JSX.Element {
const { className, expanded, expandedClassName, ...rest } = this.props;
return (
<div>
);
}
}</div>
<a href="#">Async | React Google Maps</a>
<nav>
by @tomchentw
Back to sync examples
</nav>
<nav>
Back to sync examples
</nav>
<div>
Fork me on GitHub
<div>
<div style="{{">
{React.cloneElement(Children.only(this.props.children), {
toast: ::this._handle_toast,
})}</div></div></div>
render(): JSX.Element {
const {
className,
hideBodyClassName,
accordion,
setExpanded,
expanded,
uuid,
disabled,
...rest
} = this.props;
const id = `accordion__title-${uuid}`;
const ariaControls = `accordion__body-${uuid}`;
const role = 'button';
const titleClassName = classnames(className, {
[hideBodyClassName]: hideBodyClassName && !expanded,
});
const onClick = disabled ? undefined : this.handleClick;
return (
<div tabindex="{0}" role="{role}" aria-controls="{ariaControls}" aria-expanded="{expanded}" id="{id}"></div>
function renderDropdown() {
const dropdownClassSet = { dropdown: true };
dropdownClassSet.open = state.dropdownOpen;
if (props.dropdownActions.length) {
return (
<li>
<a href="#">Samples <span></span></a>
<ul role="menu">
{props.dropdownActions.map(actionToMenuItem, this)}
</ul>
</li>
);
} else {
return null;
}
}
const LoginFormError = ({ children, show, topErrorOnly, className, ...props }) => (
<div style="{topErrorOnly">
{children}
</div>
);
className,
hideBodyClassName,
uuid,
expanded,
disabled,
accordion,
...rest
} = props;
const role = accordion ? 'region' : null;
const hideAriaAttribute = accordion ? !expanded : null;
return (
<div role="{role}" aria-labelledby="{`accordion__title-${uuid}`}" aria-hidden="{hideAriaAttribute}" id="{`accordion__body-${uuid}`}">
);
};
</div>
{items.map(({ heading, name, href, content }: any) => (
<li>
{heading && <div>{name}</div>}
{!heading && (
<a href="{href}">
{name}
</a>
)}
{content}
</li>
))}
Breadcrumb.prototype.render = function () {
var _a = this.props, hasArrowSeparator = _a.hasArrowSeparator, hasBulletSeparator = _a.hasBulletSeparator, hasDotSeparator = _a.hasDotSeparator, hasSuccedesSeparator = _a.hasSuccedesSeparator, isCentered = _a.isCentered, isRight = _a.isRight, props = tslib_1.__rest(_a, ["hasArrowSeparator", "hasBulletSeparator", "hasDotSeparator", "hasSuccedesSeparator", "isCentered", "isRight"]);
var className = classnames_1.default("breadcrumb", {
"has-arrow-separator": hasArrowSeparator,
"has-bullet-separator": hasBulletSeparator,
"has-dot-separator": hasDotSeparator,
"has-succedes-separator": hasSuccedesSeparator,
"is-centered": isCentered,
"is-right": isRight,
}, modifiers_1.sizePropsToClassenames(this.props), modifiers_1.textColorHelpersPropsToClassenames(this.props));
return (React.createElement("nav", tslib_1.__assign({}, props, { "aria-label": "breadcrumbs", className: className }),
React.createElement("ul", null, this.props.children)));
};
return Breadcrumb;