Scenic.Primitive.build

You're seeing just the function build, go back to Scenic.Primitive module for more information.
Link to this function

build(module, data, opts \\ [])

View Source

Specs

build(module :: atom(), data :: any(), opts :: keyword()) :: t()

Generic builder to create a new primitive.

This function is used internally. You should almost always use the helpers in Scenic.Primitives instead.

Parameters:

  • module - The module of the primitive you are building
  • data - the primitive-specific data being set into the primitive
  • opts - a list of style and transform options to apply to the primitive

Returns the built primitive.