Skip to content

Commit

Permalink
Add children support
Browse files Browse the repository at this point in the history
  • Loading branch information
carloskelly13 committed Jul 26, 2023
1 parent 03d1eaf commit d013baa
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
3 changes: 3 additions & 0 deletions packages/nuka/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,8 @@
"sideEffects": false,
"publishConfig": {
"provenance": true
},
"dependencies": {
"clsx": "^1.2.1"
}
}
12 changes: 10 additions & 2 deletions packages/nuka/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
import * as React from "react"
const Nuka = () => <div>Nuka Carousel v7</div>
import { PropsWithChildren } from "react"
import clsx from "clsx"

export type NukaProps = PropsWithChildren<{
className?: string
}>

const Nuka = ({ children, className }: NukaProps) => (
<div className={clsx(className, "")}>{children}</div>
)

export default Nuka

0 comments on commit d013baa

Please sign in to comment.