Skip to content

Commit

Permalink
docs: input should grab the input slot (#125)
Browse files Browse the repository at this point in the history
The Input component has a comment saying it should pull in the "label" slot but it really should pull in the "input" slot.
  • Loading branch information
deriegle committed Apr 10, 2024
1 parent 682e8f7 commit 7e271e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/04.slots/01.problem.context/slots.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ export function Label(props: React.ComponentProps<'label'>) {
}

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

0 comments on commit 7e271e0

Please sign in to comment.