private static IHtmlContent BuildLabel(ComponentGenerator generator, OptionsJson.Label options)
        {
            var content = TextOrHtmlHelper.GetHtmlContent(options.Text, options.Html);

            var attributes = options.Attributes.ToAttributesDictionary()
                             .MergeAttribute("class", options.Classes);

            return(generator.GenerateLabel(
                       options.For,
                       options.IsPageHeading ?? ComponentGenerator.LabelDefaultIsPageHeading,
                       content,
                       attributes));
        }