Skip to content

Commit 2631491

Browse files
Merge pull request #26 from cameo-js/fix/header-action
fix(docs): fix header custom button field names in theming guide (#25)
2 parents 5803a20 + 3adb64d commit 2631491

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/docs/src/content/docs/guides/theming-customization.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const { control } = useChatKit({
2020
typography: { fontFamily: "Open Sans, sans-serif" },
2121
},
2222
header: {
23-
customButtonLeft: {
23+
leftAction: {
2424
icon: "settings-cog",
2525
onClick: () => alert("Profile settings"),
2626
},
@@ -63,7 +63,7 @@ el.setOptions({
6363
typography: { fontFamily: "Open Sans, sans-serif" },
6464
},
6565
header: {
66-
customButtonLeft: {
66+
leftAction: {
6767
icon: "settings-cog",
6868
onClick: () => alert("Profile settings"),
6969
},
@@ -184,11 +184,11 @@ Custom header buttons help you add navigation, context, or actions relevant to y
184184
```jsx
185185
const options: Partial<ChatKitOptions> = {
186186
header: {
187-
customButtonLeft: {
187+
leftAction: {
188188
icon: "settings-cog",
189189
onClick: () => openProfileSettings(),
190190
},
191-
customButtonRight: {
191+
rightAction: {
192192
icon: "home",
193193
onClick: () => openHomePage(),
194194
},

0 commit comments

Comments
 (0)