website/src/components/navbar/button.jsx

13 lines
410 B
React
Raw Normal View History

2022-08-26 13:46:21 +00:00
import React from "react"
const Button = ({url, children, name}) => (
<span className="tooltip tooltip-bottom before:text-xs before:content-[attr(data-tip)]" data-tip={name}>
<div className="flex-none items-center">
2022-08-28 16:53:55 +00:00
<a className="btn btn-ghost drawer-button btn-square text-xl" href={url || "#!"} target="_blank">
2022-08-26 13:46:21 +00:00
{children}
2022-08-28 16:53:55 +00:00
</a>
2022-08-26 13:46:21 +00:00
</div>
</span>
)
export default Button