Skip to content

Commit 26a3aee

Browse files
committed
chore(qwikintrinsicelements): replace the remaining ones with PropsOf
1 parent 061acc3 commit 26a3aee

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

CODING_STANDARDS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ return (
107107
## Example of headless button customization with Tailwind
108108

109109
```tsx
110-
import { component$, QwikIntrinsicElements, Slot } from '@builder.io/qwik';
110+
import { component$, Slot } from '@builder.io/qwik';
111111
import { Button as HeadlessButton, ButtonProps as ButtonHeadlessProps } from '@qwik-ui/headless';
112112

113113
type TailwindButtonProps = { size?: 'sm' | 'md', ... };

apps/website/src/components/icons/double-chevron.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { QwikIntrinsicElements } from '@builder.io/qwik';
1+
import { PropsOf } from '@builder.io/qwik';
22

3-
export function DoubleChevron(props: QwikIntrinsicElements['svg'], key: string) {
3+
export function DoubleChevron(props: PropsOf<'svg'>, key: string) {
44
return (
55
<svg
66
xmlns="http://www.w3.org/2000/svg"

apps/website/src/routes/docs/headless/accordion/examples/multi.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ export default component$(() => {
4444
</AccordionHeader>
4545
<AccordionContent class="accordion-animation-1 overflow-hidden">
4646
<p class="pb-4">
47-
It's typed using <strong>QwikIntrinsicElements</strong>, meaning you can
48-
treat it like an element!
47+
It's typed using <strong>PropsOf</strong>, meaning you can treat it like
48+
an element!
4949
</p>
5050
</AccordionContent>
5151
</AccordionItem>

packages/kit-headless/src/components/collapsible/collapsible-content.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import {
2-
type QwikIntrinsicElements,
32
Slot,
43
component$,
54
useContext,
65
useSignal,
76
$,
87
useTask$,
8+
PropsOf,
99
} from '@builder.io/qwik';
1010
import { collapsibleContextId } from './collapsible-context-id';
1111

12-
export type CollapsibleContentProps = QwikIntrinsicElements['div'];
12+
export type CollapsibleContentProps = PropsOf<'div'>;
1313

1414
export const CollapsibleContent = component$((props: CollapsibleContentProps) => {
1515
const context = useContext(collapsibleContextId);

packages/kit-headless/src/components/collapsible/collapsible.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ import {
66
useSignal,
77
$,
88
type Signal,
9-
type QwikIntrinsicElements,
9+
PropsOf,
1010
} from '@builder.io/qwik';
1111
import { collapsibleContextId } from './collapsible-context-id';
1212
import { type CollapsibleContext } from './collapsible-context.type';
1313
import { getHiddenHeight } from '../../utils/get-hidden-height';
1414

15-
export type CollapsibleProps = QwikIntrinsicElements['div'] & {
15+
export type CollapsibleProps = PropsOf<'div'> & {
1616
defaultOpen?: boolean | undefined;
1717
id?: string;
1818
'bind:isOpen'?: Signal<boolean | undefined>;

0 commit comments

Comments
 (0)