Enode — API Reference
    Preparing search index...

    Props of NavRow.

    type NavRowProps = {
        ariaDescription?: string;
        className?: string;
        destructive?: boolean;
        disabled?: boolean;
        external?: boolean;
        findId?: string;
        href?: string;
        icon?: ReactNode;
        label: string;
        onPress?: () => void;
        sublabel?: string;
        trailing?: ReactNode;
        value?: ReactNode;
    }
    Index

    Properties

    ariaDescription?: string

    Passed through as aria-description (e.g. "Opens in a new tab").

    className?: string
    destructive?: boolean

    Label in the error colour, no chevron, no value (e.g. "Delete account").

    disabled?: boolean

    aria-disabled, dimmed, and the handler / link is dropped.

    external?: boolean

    Shows an arrow-up-right instead of the chevron (the row leaves the app); with href it also opens in a new tab.

    findId?: string

    Becomes data-find: the target the settings search highlights.

    href?: string

    Makes the row an <a> (wins over onPress).

    icon?: ReactNode

    Leading monochrome glyph (decorative; the label says what it is).

    label: string
    onPress?: () => void

    Makes the row a <button type="button">.

    sublabel?: string

    One quiet line under the label.

    trailing?: ReactNode

    Replaces the chevron, e.g. a <Toggle/>; use it on a row without href/onPress. When trailing is an interactive control (e.g. Toggle), give it its own aria-label — the row itself is not a label for it.

    value?: ReactNode

    What the setting is set to, grey on the right; truncates. Hidden on destructive rows.