UNPKG

@td-design/react-native

Version:

react-native UI组件库

23 lines 815 B
import { FC } from 'react'; import { StyleProp, ViewStyle } from 'react-native'; import { Spacing } from '../theme'; import { ButtonGroupOption } from './Item'; export interface ButtonGroupProps { /** 指定可选项 */ options: ButtonGroupOption[]; /** 尺寸 */ size?: Spacing; /** 设置禁用的项,值为options的数组下标 */ disabledItems?: number[]; /** 默认处于点击状态的Item,值为 options 的数组下标 */ activeIndex?: number; /** 自定义Item样式 */ itemStyle?: StyleProp<ViewStyle>; /** 自定义容器样式 */ containerStyle?: StyleProp<ViewStyle>; /** 未禁用时的不透明度 */ activeOpacity?: number; } declare const ButtonGroup: FC<ButtonGroupProps>; export default ButtonGroup; //# sourceMappingURL=index.d.ts.map