soda-material
Version:
A component library that may follow [material design 3](https://m3.material.io/components) (a.k.a. material you)
19 lines (18 loc) • 729 B
TypeScript
/// <reference types="react" />
import './segmented-button.scss';
export declare const SegmentedButton: import("react").ForwardRefExoticComponent<{
activeIndex?: number | undefined;
items?: {
label: React.ReactNode;
disabled?: boolean | undefined;
/**
* Optional, defaults to array index
*/
key?: import("react").Key | undefined;
}[] | undefined;
onChange?(activeIndex: number): void;
/**
* Each step down in density removes 4px from the height
*/
density?: 0 | -1 | -2 | -3 | undefined;
} & Omit<import("react").HTMLProps<HTMLElement>, "ref" | "onChange" | "items" | "activeIndex" | "density"> & import("react").RefAttributes<HTMLDivElement>>;