UNPKG

@engie-group/fluid-design-system-react

Version:

Fluid Design System React

13 lines (10 loc) 668 B
import { jsx } from 'react/jsx-runtime'; import { Root as Slot } from '../../../node_modules/.pnpm/@radix-ui_react-slot@1.2.3_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-slot/dist/index.js'; import { forwardRef } from 'react'; import { NJIconButton } from '../../icon-button/NJIconButton.js'; const rootClass = 'nj-chat-input-button'; const NJChatInputButton = forwardRef((iconButtonProps, forwardRef) => { return (jsx(Slot, { className: rootClass, children: jsx(NJIconButton, { ref: forwardRef, ...iconButtonProps, scale: "md", variant: "tertiary" }) })); }); NJChatInputButton.displayName = 'NJChatInputButton'; export { NJChatInputButton };