react-wheel-menu
Version:
React components & hooks for building a radial wheel menu
19 lines (18 loc) • 615 B
TypeScript
import { CSSProperties } from 'react';
import { Angle } from '../angle/Angle';
import { SegmentGap } from './SegmentGap';
import { SegmentState } from './SegmentState';
export interface UseSegmentProps {
readonly className?: string;
readonly style?: CSSProperties;
readonly from: Angle;
readonly to: Angle;
readonly gapBefore?: SegmentGap;
readonly gapAfter?: SegmentGap;
}
export interface UseSegmentReturn {
readonly state: SegmentState;
readonly className: string;
readonly style: CSSProperties;
}
export declare function useSegment(props: UseSegmentProps): UseSegmentReturn;