UNPKG

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

Version:

Fluid Design System React

27 lines (26 loc) 930 B
import React from 'react'; import { WithHTMLAttributes } from '../../utils/typeHelpers'; export declare const NJSegmentedControl: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof ISegmentedControlCustomProps> & ISegmentedControlCustomProps & React.RefAttributes<HTMLDivElement>>; export interface ISegmentedControlCustomProps { /** * Label of the button group */ label: string; /** * SegmentedControl size */ size?: 'sm' | 'md' | 'lg'; /** * SegmentedControl value */ value?: string; /** * SegmentedControl children, should be `NJSegmentedControlButtons` */ children: React.ReactNode[]; /** * SegmentedControl onChange */ onChange?: (value: string) => void; } export type ISegmentedControlProps = WithHTMLAttributes<ISegmentedControlCustomProps, 'div'>;