UNPKG

alouette

Version:

A modern, customizable design system built on top of NativeWind v5 with configurable defaults

18 lines 875 B
import type { ReactNode } from "react"; import { type InteractiveBoxProps } from "../containers/Box"; import { type SVGIconElement } from "../primitives/Icon"; export interface SegmentedItemProps extends Omit<InteractiveBoxProps, "aria-label" | "children" | "className" | "withFocusVisibleOutline"> { label: string; icon?: SVGIconElement; selected: boolean; /** * react-native's types have no `aria-current` / `aria-controls` / `href`, but * react-native-web forwards all three (an `href` makes it render an `<a>`) and * native ignores unknown props — declared here for `NavBarItem` and `Tab`. */ "aria-current"?: "page"; "aria-controls"?: string; href?: string; } export declare function SegmentedItem({ label, icon, selected, disabled, ...props }: SegmentedItemProps): ReactNode; //# sourceMappingURL=SegmentedItem.d.ts.map