react-native-paper
Version:
Material design for React Native
33 lines • 1.11 kB
TypeScript
import { ViewStyle } from 'react-native';
import type { InternalTheme } from '../../types';
declare type BaseProps = {
theme: InternalTheme;
disabled?: boolean;
checked: boolean;
};
declare type SegmentedButtonProps = {
checkedColor?: string;
uncheckedColor?: string;
} & BaseProps;
export declare const getSegmentedButtonDensityPadding: ({ density, }: {
density?: "small" | "regular" | "medium" | "high" | undefined;
}) => number;
export declare const getDisabledSegmentedButtonStyle: ({ theme, index, buttons, }: {
theme: InternalTheme;
buttons: {
disabled?: boolean;
}[];
index: number;
}) => ViewStyle;
export declare const getSegmentedButtonBorderRadius: ({ segment, theme, }: {
theme: InternalTheme;
segment?: "first" | "last" | undefined;
}) => ViewStyle;
export declare const getSegmentedButtonColors: ({ theme, disabled, checked, checkedColor, uncheckedColor, }: SegmentedButtonProps) => {
backgroundColor: string;
borderColor: string;
textColor: string;
borderWidth: number;
};
export {};
//# sourceMappingURL=utils.d.ts.map