Initial OSS commit
This commit is contained in:
commit
4a7303f40a
391 changed files with 245738 additions and 0 deletions
18
packages/plugin-r3f/src/components/elements/Button.tsx
Normal file
18
packages/plugin-r3f/src/components/elements/Button.tsx
Normal file
|
@ -0,0 +1,18 @@
|
|||
import React, {forwardRef} from 'react'
|
||||
import type {ButtonProps} from 'reakit'
|
||||
import {Button as ButtonImpl} from 'reakit'
|
||||
|
||||
export type {ButtonProps}
|
||||
|
||||
const Button = forwardRef<HTMLButtonElement, ButtonProps>((props, ref) => {
|
||||
return (
|
||||
<ButtonImpl
|
||||
// @ts-ignore
|
||||
ref={ref}
|
||||
{...props}
|
||||
className={`${props.className} inline-flex justify-center rounded-md px-4 py-2 font-medium bg-gray-100 text-gray-700 hover:bg-gray-200 focus:outline-none focus:ring focus:ring-blue-300`}
|
||||
/>
|
||||
)
|
||||
})
|
||||
|
||||
export default Button
|
Loading…
Add table
Add a link
Reference in a new issue