UNPKG

react-wheel-menu

Version:

React components & hooks for building a radial wheel menu

12 lines (11 loc) 512 B
import { ComponentPropsWithoutRef, ElementType } from 'react'; import { Angle } from '../angle/Angle'; import { SegmentGap } from './SegmentGap'; export type SegmentProps<T extends ElementType = 'div'> = ComponentPropsWithoutRef<T> & { readonly as?: T; readonly from: Angle; readonly to: Angle; readonly gapBefore?: SegmentGap; readonly gapAfter?: SegmentGap; }; export declare function Segment<T extends ElementType = 'div'>(props: SegmentProps<T>): import("react/jsx-runtime").JSX.Element;