platform-bible-react
    Preparing search index...

    Type Alias ContentZoomRootPropsExperimental

    ContentZoomRootProps: HTMLAttributes<HTMLElement> & {
        area?: string;
        as?: "div" | "span";
        label?: string;
    }

    Props for ContentZoomRoot.

    This export is unstable and may change shape or disappear without notice

    Type declaration

    • Optional Experimentalarea?: string

      Id of the zoom area this element belongs to: lower-case letters, digits and hyphens, starting with a letter ([a-z][a-z0-9-]*). default is reserved by the platform and is ignored. Omit this prop for the view's main area. A view with several independently zoomable panes gives each its own id — the Scripture editor uses footnotes for its footnotes pane.

      This library does not validate the id at runtime; the platform ignores a malformed one and logs a warning once.

      This property is unstable and may change shape or disappear without notice

    • Optional Experimentalas?: "div" | "span"

      Element to render: 'div' (the default) or 'span'. Use 'span' inside phrasing content — a <p>, a heading, or a table cell's inline text — where a div is not allowed.

      This property is unstable and may change shape or disappear without notice

    • Optional Experimentallabel?: string

      Name of this zoom area as the zoom indicator shows it: <label> · 120 % instead of 120 %. Give it when a view has several areas the user could not otherwise tell apart — the Text Collection labels each resource's area with the resource's short name. Plain text. When several elements share an area id, the first one with a label names the area. Omit it and the indicator shows the level alone.

      This property is unstable and may change shape or disappear without notice