UNPKG

@saas-ui/input-right-button

Version:

A input right button for Chakra UI

1 lines 1.18 kB
{"version":3,"file":"index.modern.mjs","sources":["../src/input-right-button.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { forwardRef, InputRightElement } from '@chakra-ui/react'\n\nimport { __DEV__ } from '@chakra-ui/utils'\n\nimport { Button, ButtonProps } from '@saas-ui/button'\n\nexport type InputRightButtonProps = ButtonProps\n\nexport const InputRightButton = forwardRef<InputRightButtonProps, 'div'>(\n (props, ref) => {\n return (\n <InputRightElement w=\"auto\" px=\"1\" py=\"1\" alignItems=\"stretch\">\n <Button ref={ref} height=\"auto\" {...props} />\n </InputRightElement>\n )\n }\n)\n\nInputRightButton.id = 'InputRightElement'\n\nif (__DEV__) {\n InputRightButton.displayName = 'InputRightButton'\n}\n"],"names":["InputRightButton","forwardRef","props","ref","React","createElement","InputRightElement","w","px","py","alignItems","Button","_extends","height","id","__DEV__","displayName"],"mappings":"qZAUaA,MAAAA,EAAmBC,EAC9B,CAACC,EAAOC,iBAEJC,EAAAC,cAACC,EAAkB,CAAAC,EAAE,OAAOC,GAAG,IAAIC,GAAG,IAAIC,WAAW,wBACnDN,EAAAC,cAACM,EAAOC,EAAA,CAAAT,IAAKA,EAAKU,OAAO,QAAWX,MAM5CF,EAAiBc,GAAK,oBAElBC,IACFf,EAAiBgB,YAAc"}