# extendify/0.1.0/src/components/buttons/Primary.js

Extendify, version 0.1.0. 11 lines.

- Page: https://pluginprobe.com/plugins/extendify/0.1.0/code/src/components/buttons/Primary.js
- Raw: https://pluginprobe.com/plugins/extendify/0.1.0/raw/src/components/buttons/Primary.js
- Modified: 2022-01-06T18:08:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/extendify/0.1.0/code/src/components/buttons/Primary.js#L10-L20`.

```javascript
import classNames from 'classnames'
import { createElement } from '@wordpress/element'

export default function Primary({ tagName = 'button', children, ...props }) {
    props.className = classNames(
        props.className,
        'bg-extendify-main hover:bg-extendify-main-dark cursor-pointer rounded no-underline text-base text-white flex justify-center items-center',
    )
    return createElement(tagName, props, children)
}

```
