Skip to content

AccordionItem — @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 { AccordionItem } from '@gj-kit/expo-ui';
interface AccordionItem<T extends string> {
readonly value: T;
readonly title: string;
readonly description?: string | undefined;
readonly content: NonNullable<ReactNode>;
readonly leading?: ReactNode | undefined;
/**
* Presentation-only decoration at the end of the header row, before the
* expansion indicator — a count badge, for example. It renders inside the
* trigger but is hidden from accessibility, so the trigger's accessible name
* stays the title. Interactive trailing content is unsupported; when the
* information matters to assistive technology, repeat it in `description`.
*/
readonly trailing?: ReactNode | undefined;
readonly disabled?: boolean | undefined;
}

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