Skip to content

Commit

Permalink
Update modules/docs/mdx/CREATING_COMPOUND_COMPONENTS.mdx
Browse files Browse the repository at this point in the history
Co-authored-by: Nicholas Boll <[email protected]>
  • Loading branch information
mannycarrera4 and NicholasBoll authored Dec 4, 2024
1 parent 9c1f938 commit ee6b4d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/docs/mdx/CREATING_COMPOUND_COMPONENTS.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ or behavior and don't rely on state and events such as a `Card`, `Flex` or `Butt
### `createComponent`

Use `createComponent` when you want to create a rendered element with _no behavior_. This is useful
for elements that you want to use for styling purposes like container elements, or sub components
for elements that you want to use for styling purposes like container elements, or subcomponents
that are simple rendered elements. This utility function will wrap your component in a
`React.ForwardRef` and allow you to add sub components as well.
`React.ForwardRef` and allow you to add subcomponents as well.

```tsx
export const Card = createComponent('div')({
Expand Down

0 comments on commit ee6b4d4

Please sign in to comment.