We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d66b743 commit 6b0aefeCopy full SHA for 6b0aefe
1 file changed
src/announcement/index.tsx
@@ -7,11 +7,13 @@ export function Announcement({
7
message,
8
localStorageKey,
9
display = true,
10
+ barClassName,
11
}: {
12
href: string;
- message: string;
13
+ message: string | React.ReactNode;
14
localStorageKey: string;
15
display?: boolean;
16
+ barClassName?: string;
17
}) {
18
if (!display) {
19
return null;
@@ -25,7 +27,7 @@ export function Announcement({
25
27
}
26
28
29
return (
- <div className={styles.bar}>
30
+ <div className={`${styles.bar} ${barClassName}`}>
31
<a href={href} className={styles.link}>
32
{message}
33
</a>
0 commit comments