Backstage
    Preparing search index...

    Function useBgConsumer

    • Hook for consumer components (e.g. Button) to read the parent bg context.

      Returns the parent container's bg unchanged. The consumer component's CSS handles the visual step-up (e.g. on a neutral-1 surface, the consumer uses neutral-2 tokens via data-on-bg).

      Returns BgContextValue