[android-components](../../index.md) / [mozilla.components.browser.menu.item](../index.md) / [BrowserMenuCategory](index.md) / [&lt;init&gt;](./-init-.md)

# &lt;init&gt;

`BrowserMenuCategory(label: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, textSize: `[`Float`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)` = NO_ID.toFloat(), @ColorRes textColorResource: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` = NO_ID, textStyle: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` = Typeface.BOLD, textAlignment: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` = View.TEXT_ALIGNMENT_VIEW_START)`

A browser menu item displaying styleable text, usable for menu categories

### Parameters

`label` - The visible label of this menu item.

`textSize` - : The size of the label.

`textColorResource` - : The color resource to apply to the text.

`textStyle` - : The style to apply to the text.

`textAlignment` - The alignment of text