react-compinators
    Preparing search index...

    Function unfoldProp

    • Unfold the given component into a component per member of the given union, where the given prop of each component is partially applied to a different member of the union.

      Type Parameters

      • Props extends object
      • Prop extends string

      Parameters

      Returns <const Union extends readonly Props[Prop][]>(
          members: Union,
          buildDisplayName?: (value: Props[Prop]) => string,
      ) => TupleOf<Union["length"], FC<Simplify<Omit<Props, Prop>>>>