UNPKG

@engie-group/fluid-design-system-react

Version:

Fluid Design System React

26 lines (25 loc) 1.15 kB
import { SegmentedControlProperties } from '@engie-group/fluid-types'; import React, { PropsWithChildren } from 'react'; import { WithHTMLAttributes } from '../../utils/typeHelpers'; export declare const NJSegmentedControl: React.ForwardRefExoticComponent<import("../../utils/typeHelpers").HTMLAttributesWithoutComponentProps<"div", SegmentedControlCustomProps> & SegmentedControlProperties & SegmentedControlEvents & { /** * Initial active button value (uncontrolled mode) */ initialValue?: SegmentedControlProperties["value"]; } & { children?: React.ReactNode | undefined; } & React.RefAttributes<HTMLDivElement>>; type SegmentedControlEvents = { /** * Emits the new selected button value */ onChange?: (value: SegmentedControlProperties['value']) => void; }; type SegmentedControlCustomProps = PropsWithChildren<SegmentedControlProperties & SegmentedControlEvents & { /** * Initial active button value (uncontrolled mode) */ initialValue?: SegmentedControlProperties['value']; }>; export type NJSegmentedControlProps = WithHTMLAttributes<SegmentedControlCustomProps, 'div'>; export {};