21 lines
541 B
TypeScript
21 lines
541 B
TypeScript
import { cn } from '@/lib/utils'
|
|
import { forwardRef, HTMLProps } from 'react'
|
|
|
|
const SettingItem = forwardRef<HTMLDivElement, HTMLProps<HTMLDivElement>>(
|
|
({ children, className, ...props }, ref) => {
|
|
return (
|
|
<div
|
|
className={cn(
|
|
'flex min-h-9 select-none items-center justify-between px-4 [&_svg]:size-4 [&_svg]:shrink-0',
|
|
className
|
|
)}
|
|
{...props}
|
|
ref={ref}
|
|
>
|
|
{children}
|
|
</div>
|
|
)
|
|
}
|
|
)
|
|
SettingItem.displayName = 'SettingItem'
|
|
export default SettingItem
|