soda-material
Version:
A React(>=18) component library that may follow [Material Design 3](https://m3.material.io/components) (a.k.a. Material You)
20 lines (19 loc) • 784 B
TypeScript
/// <reference types="react" />
import './segmented-button.scss';
export declare const SegmentedButton: import("react").ForwardRefExoticComponent<{
value?: string | undefined;
defaultValue?: string | undefined;
onChange?: ((value: string) => void) | undefined;
items?: {
value: string;
/**
* You can omit the label, it will show the `value`
*/
label?: React.ReactNode;
disabled?: boolean | undefined;
}[] | undefined;
/**
* Each step down in density removes 4px from the height
*/
density?: 0 | -1 | -2 | -3 | undefined;
} & Omit<import("react").HTMLProps<HTMLElement>, "as" | "ref" | "value" | "defaultValue" | "onChange" | "items" | "density"> & import("react").RefAttributes<HTMLDivElement>>;