build

Creates a new instance of TextComponent with the supplied properties.