index.d.ts 999 B

123456789101112131415161718192021
  1. import * as React from "react";
  2. import * as Radix from "@radix-ui/react-primitive";
  3. import { Primitive } from "@radix-ui/react-primitive";
  4. declare const ORIENTATIONS: readonly ["horizontal", "vertical"];
  5. type Orientation = typeof ORIENTATIONS[number];
  6. type PrimitiveDivProps = Radix.ComponentPropsWithoutRef<typeof Primitive.div>;
  7. export interface SeparatorProps extends PrimitiveDivProps {
  8. /**
  9. * Either `vertical` or `horizontal`. Defaults to `horizontal`.
  10. */
  11. orientation?: Orientation;
  12. /**
  13. * Whether or not the component is purely decorative. When true, accessibility-related attributes
  14. * are updated so that that the rendered element is removed from the accessibility tree.
  15. */
  16. decorative?: boolean;
  17. }
  18. export const Separator: React.ForwardRefExoticComponent<SeparatorProps & React.RefAttributes<HTMLDivElement>>;
  19. export const Root: React.ForwardRefExoticComponent<SeparatorProps & React.RefAttributes<HTMLDivElement>>;
  20. //# sourceMappingURL=index.d.ts.map