Skip to content

Commit 7e271e0

Browse files
authored
docs: input should grab the input slot (#125)
The Input component has a comment saying it should pull in the "label" slot but it really should pull in the "input" slot.
1 parent 682e8f7 commit 7e271e0

File tree

1 file changed

+1
-1
lines changed
  • exercises/04.slots/01.problem.context

1 file changed

+1
-1
lines changed

exercises/04.slots/01.problem.context/slots.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ export function Label(props: React.ComponentProps<'label'>) {
1414
}
1515

1616
export function Input(props: React.ComponentProps<'input'>) {
17-
// 🐨 get the props from useSlotProps for a slot called "label" and apply those to the input
17+
// 🐨 get the props from useSlotProps for a slot called "input" and apply those to the input
1818
return <input {...props} />
1919
}

0 commit comments

Comments
 (0)