Skip to content

SegmentedControlProps — @gj-kit/expo-ui

A public interface from @gj-kit/expo-ui. The signature below is taken directly from the 0.8.1 release declaration.

import { SegmentedControlProps } from '@gj-kit/expo-ui';
interface SegmentedControlProps<T extends string> extends Omit<CommonProps, 'unstyled'> {
/** The values are the source of truth for the literal value union. */
items: readonly SegmentedControlItem<T>[];
/** Exactly one item is selected; empty selection belongs to ToggleGroup. */
value: NoInfer<T>;
onValueChange: (value: T) => void;
/** A stable accessible name for the radio group. */
accessibilityLabel: string;
/** Defaults to md. */
size?: SegmentedControlSize | undefined;
/** Equal segments fill their container; content segments retain their intrinsic width. Defaults to equal. */
fit?: SegmentedControlFit | undefined;
/** Visual treatment only; radio semantics and keyboard behavior are identical. Defaults to filled. */
variant?: SegmentedControlVariant | undefined;
/** Applies to every segment without changing its semantic state. */
itemStyle?: StyleProp<ViewStyle> | undefined;
itemClassName?: string | undefined;
unstyled?: never;
}

This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.

  • Package: @gj-kit/expo-ui
  • Version: 0.8.1
  • Public entry: .
  • Source: GitHub