import React from "react";

/**
 * Layout-primitive for auto-spacing between elements
 *
 * @see [📝 Documentation](https://aksel.nav.no/komponenter/primitives/hstack)
 *
 * @example
 * <HStack gap="8">
 *  <MyComponent />
 *  <Spacer />
 *  <MyComponent />
 * </HStack>
 */
export const Spacer = () => <span className="navds-stack__spacer" />;

export default Spacer;
