Skip to content

Commit

Permalink
feat(component): implement rounded output component
Browse files Browse the repository at this point in the history
  • Loading branch information
danilych committed Feb 10, 2024
1 parent a35077b commit f4cdd66
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions app/shared/Output/rounded-output.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import clsx from 'clsx'
import type { HTMLProps, ReactNode } from 'react'
import React, { forwardRef, useImperativeHandle, useRef } from 'react'

Check failure on line 3 in app/shared/Output/rounded-output.tsx

View workflow job for this annotation

GitHub Actions / pipeline (21.x)

'forwardRef' is defined but never used

Check failure on line 3 in app/shared/Output/rounded-output.tsx

View workflow job for this annotation

GitHub Actions / pipeline (21.x)

'forwardRef' is defined but never used

Check failure on line 3 in app/shared/Output/rounded-output.tsx

View workflow job for this annotation

GitHub Actions / pipeline (21.x)

'useImperativeHandle' is defined but never used

Check failure on line 3 in app/shared/Output/rounded-output.tsx

View workflow job for this annotation

GitHub Actions / pipeline (21.x)

'useImperativeHandle' is defined but never used

Check failure on line 3 in app/shared/Output/rounded-output.tsx

View workflow job for this annotation

GitHub Actions / pipeline (21.x)

'useRef' is defined but never used

Check failure on line 3 in app/shared/Output/rounded-output.tsx

View workflow job for this annotation

GitHub Actions / pipeline (21.x)

'useRef' is defined but never used

interface Props extends HTMLProps<HTMLInputElement> {
className?: string
children?: ReactNode
}

export function RoundedOutput({ className, children }: Props) {
return (
<div
className={clsx(
'text-[#4E4E51] py-[11px] h-[50px] bg-[#F6F6F6] rounded-[50px] outline-none text-sm font-manrope font-normal w-full border-0',
className
)}
>
<p className="ml-[18px] text-[#1f1f1f] text-base font-normal">{children}</p>
</div>
)
}

0 comments on commit f4cdd66

Please sign in to comment.