mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-24 14:04:19 +00:00
20 lines
529 B
JavaScript
20 lines
529 B
JavaScript
|
import React from "react"
|
||
|
import Style from "./ButtonIconOnly.module.css"
|
||
|
import classNames from "classnames"
|
||
|
import Button from "./Button"
|
||
|
|
||
|
|
||
|
/**
|
||
|
* A {@link Button} with only an icon.
|
||
|
*
|
||
|
* @param className - Additional class(es) to add to the button.
|
||
|
* @param props - Additional props to pass to the button.
|
||
|
* @returns {JSX.Element}
|
||
|
* @constructor
|
||
|
*/
|
||
|
export default function ButtonIconOnly({ className, ...props }) {
|
||
|
return (
|
||
|
<Button className={classNames(Style.ButtonIconOnly, className)} {...props}/>
|
||
|
)
|
||
|
}
|