Skip to content

Commit 95c23cc

Browse files
committed
feat: add className support to language swithcer
1 parent 1b9b113 commit 95c23cc

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changeset/silver-crabs-cheat.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@lingo.dev/_react": minor
3+
---
4+
5+
add className support to language switcher component

packages/react/src/client/locale-switcher.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { useState, useEffect } from "react";
44
import { getLocaleFromCookies, setLocaleInCookies } from "./utils";
55

66
export type LocaleSwitcherProps = {
7+
className?: string;
78
locales: string[];
89
};
910

@@ -23,6 +24,7 @@ export function LocaleSwitcher(props: LocaleSwitcherProps) {
2324
return (
2425
<select
2526
value={locale}
27+
className={props.className}
2628
onChange={(e) => {
2729
handleLocaleChange(e.target.value);
2830
}}

0 commit comments

Comments
 (0)