Skip to content

Commit 72ca21a

Browse files
committed
fix: pass down select item indicator props
1 parent 7d0a335 commit 72ca21a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/little-llamas-brake.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@qwik-ui/headless': patch
3+
---
4+
5+
Enable select item indicator styling by passing down properties
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { PropsOf, Slot, component$, useContext } from '@builder.io/qwik';
22
import { selectItemContextId } from './select-context';
33

4-
export const HSelectItemIndicator = component$<PropsOf<'span'>>(() => {
4+
export const HSelectItemIndicator = component$<PropsOf<'span'>>((props) => {
55
const selectContext = useContext(selectItemContextId);
66

7-
return <span>{selectContext.isSelectedSig.value && <Slot />}</span>;
7+
return <span {...props}>{selectContext.isSelectedSig.value && <Slot />}</span>;
88
});

0 commit comments

Comments
 (0)