## Title Use the Title component to render h1-h6 headings. Category: Typography ### Simple Example Use Title component to render h1-h6 headings with Mantine theme styles. By default, Title has no margins and paddings. Pass the `order` prop to render specific element (h1-h6), default order is 1. ```python import dash_mantine_components as dmc from dash import html component = html.Div( [ dmc.Title(f"This is h1 title", order=1), dmc.Title(f"This is h2 title", order=2), dmc.Title(f"This is h3 title", order=3), dmc.Title(f"This is h4 title", order=4), dmc.Title(f"This is h5 title", order=5), dmc.Title(f"This is h6 title", order=6), ] ) ``` ### Styles API This component supports Styles API. With Styles API, you can customize styles of any inner element. See the Styling and Theming sections of these docs for more information. | Name | Static selector | Description | |:------------|:--------------------|:-------------------------------------------------| | root | .mantine-Title-root | Root element | ### Keyword Arguments #### Title - children (a list of or a singular dash component, string or number; optional): Content. - id (string; optional): Unique ID to identify this component in Dash callbacks. - aria-* (string; optional): Wild card aria attributes. - attributes (boolean | number | string | dict | list; optional): Passes attributes to inner elements of a component. See Styles API docs. - className (string; optional): Class added to the root element, if applicable. - classNames (dict; optional): Adds custom CSS class names to inner elements of a component. See Styles API docs. - darkHidden (boolean; optional): Determines whether component should be hidden in dark color scheme with `display: none`. - data-* (string; optional): Wild card data attributes. - hiddenFrom (string; optional): Breakpoint above which the component is hidden with `display: none`. - lightHidden (boolean; optional): Determines whether component should be hidden in light color scheme with `display: none`. - lineClamp (number; optional): Number of lines after which Text will be truncated. - loading_state (dict; optional): Object that holds the loading state object coming from dash-renderer. For use with dash<3. `loading_state` is a dict with keys: - mod (string | dict | list of string | dicts; optional): Element modifiers transformed into `data-` attributes. For example: "xl" or {"data-size": "xl"}. Can also be a list of strings or dicts for multiple modifiers. Falsy values are removed. - order (a value equal to: 1, 2, 3, 4, 5, 6; optional): Determines which tag will be used (h1-h6), controls `font-size` style if `size` prop is not set, `1` by default. - size (string | number; optional): Changes title size, if not set, then size is controlled by `order` prop. - styles (boolean | number | string | dict | list; optional): Adds inline styles directly to inner elements of a component. See Styles API docs. - tabIndex (number; optional): tab-index. - textWrap (a value equal to: 'nowrap', 'wrap', 'balance', 'pretty', 'stable'; optional): Controls `text-wrap` property, `'wrap'` by default. - variant (string; optional): variant. - visibleFrom (string; optional): Breakpoint below which the component is hidden with `display: none`.