UNPKG

@engie-group/fluid-design-system-react

Version:

Fluid Design System React

16 lines (13 loc) 601 B
import { jsx } from 'react/jsx-runtime'; import React__default from 'react'; import { Utils } from '../../../utils/util.js'; const NJListRoot = React__default.forwardRef((props, forwardedRef) => { const { hasBorder, children, scale, className, ...htmlProps } = props; const listClasses = Utils.classNames('nj-list', { [`nj-list--has-border`]: hasBorder, [`nj-list--${scale}`]: !!scale }, className); return (jsx("ul", { ref: forwardedRef, ...htmlProps, className: listClasses, children: children })); }); NJListRoot.displayName = 'NJListRoot'; export { NJListRoot };