import { jsx as _jsx } from "react/jsx-runtime";
import { useStyleConfig, vui } from '../core';
import Divider from '../divider';
import { cs } from '../utils';
import { useListContext } from './context';
/** Displays a divider line within the List. */
export const ListDivider = vui((props, ref) => {
    const { className, ...rest } = props;
    const styles = useStyleConfig('List', useListContext());
    return (_jsx("li", { children: _jsx(Divider, { className: cs('vui-listDivider', className), my: 1, ref: ref, ...styles.divider, ...rest }) }));
});
ListDivider.displayName = 'ListDivider';
export default ListDivider;
//# sourceMappingURL=listDivider.js.map