UNPKG

@wordpress/components

Version:
30 lines 1.02 kB
/// <reference types="react" /> /** * `Divider` is a layout component that separates groups of related content. * * ```js * import { * __experimentalDivider as Divider, * __experimentalText as Text, * __experimentalVStack as VStack, * } from `@wordpress/components`; * * function Example() { * return ( * <VStack spacing={4}> * <Text>Some text here</Text> * <Divider /> * <Text>Some more text here</Text> * </VStack> * ); * } * ``` */ export declare const Divider: import("../ui/context").WordPressComponent<"hr", Omit<import("reakit").SeparatorProps, "children" | "orientation" | "unstable_system"> & { margin?: import("../ui/utils/space").SpaceInput | undefined; marginEnd?: import("../ui/utils/space").SpaceInput | undefined; marginStart?: import("../ui/utils/space").SpaceInput | undefined; orientation?: "horizontal" | "vertical" | undefined; } & import("react").RefAttributes<any>, false>; export default Divider; //# sourceMappingURL=component.d.ts.map