@noxlovette/material 0.4.2 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -21,6 +21,8 @@ comment.
|
|
|
21
21
|
children,
|
|
22
22
|
title,
|
|
23
23
|
subtitle,
|
|
24
|
+
titleProps,
|
|
25
|
+
subtitleProps,
|
|
24
26
|
trailing,
|
|
25
27
|
leading,
|
|
26
28
|
class: className,
|
|
@@ -74,11 +76,13 @@ comment.
|
|
|
74
76
|
{@render leading?.()}
|
|
75
77
|
</div>
|
|
76
78
|
<div class={textContainer()}>
|
|
77
|
-
<h1 class={titleCLs()}>
|
|
79
|
+
<h1 class={titleCLs({ class: clsx(titleProps?.class) })} {...titleProps}>
|
|
78
80
|
{title}
|
|
79
81
|
</h1>
|
|
80
82
|
{#if subtitle}
|
|
81
|
-
<p class={subtitleCls()}
|
|
83
|
+
<p class={subtitleCls({ class: clsx(subtitleProps?.class) })} {...subtitleProps}>
|
|
84
|
+
{subtitle}
|
|
85
|
+
</p>
|
|
82
86
|
{/if}
|
|
83
87
|
</div>
|
|
84
88
|
<div class={trailingCls()}>
|
|
@@ -11,6 +11,10 @@ export type AppBarProps = AppbarVariants & HTMLAttributes<HTMLElementTagNameMap[
|
|
|
11
11
|
title: string;
|
|
12
12
|
/** An optional subtitle displayed below the title. */
|
|
13
13
|
subtitle?: string;
|
|
14
|
+
/** Additional props for the title `<h1>` element (e.g. `data-cy`). */
|
|
15
|
+
titleProps?: HTMLAttributes<HTMLHeadingElement>;
|
|
16
|
+
/** Additional props for the subtitle `<p>` element (e.g. `data-cy`). */
|
|
17
|
+
subtitleProps?: HTMLAttributes<HTMLParagraphElement>;
|
|
14
18
|
/** A snippet to be rendered on the left side (e.g., navigation icon). */
|
|
15
19
|
leading?: Snippet;
|
|
16
20
|
/** A snippet to be rendered on the right side (e.g., action icons). */
|