PrimaryButton
Button to be used as main action on dialogs and actions.
Props:
title
Description: Content to display in the button. Type: String. Required.
onClick
Description: Function to invoke on button click. Type: Function. Required.
disabled
Description: Disables the button. Type: Boolean.
loading
Description: Shows loading animation if true. Type: Boolean.
icon
Description: A space to render your own icon. Type: ReactNode.
size
Description: Button size. Type: "tiny" | "small" | "medium" | "large". Default: "Medium".
style
Description: Button style. Type: CSS Properties.
className
Description: ClassName. Type: String.
Code
<PrimaryButton onClick={() => toast.success('Primary Button')} title='Confirm' icon={ <MdCheck size={16} /> } />