@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
37 lines • 819 B
JavaScript
import React from 'react';
import clsx from 'clsx';
import E from "../Element.js";
import withComponentMarkers from "../../shared/helpers/withComponentMarkers.js";
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
const Dl = ({
layout,
...props
}) => {
if (layout) {
props.className = clsx(props.className, `dnb-dl__layout--${layout}`);
}
return _jsx(E, {
as: "dl",
...props,
skeleton: false
});
};
Dl.Item = ({
className,
children,
...props
}) => {
return _jsxs(_Fragment, {
children: [children, _jsx(E, {
as: "dd",
"aria-hidden": true,
className: clsx(className, 'dnb-dl__item'),
...props
})]
});
};
withComponentMarkers(Dl, {
_supportsSpacingProps: true
});
export default Dl;
//# sourceMappingURL=Dl.js.map