Sha256: 2d53a490e660f8f3410c23beb7669b092517ea29508d170ac4ccfe5c5d7e5cb4

Contents?: true

Size: 789 Bytes

Versions: 29

Compression:

Stored size: 789 Bytes

Contents

import React from "react"
import { Button } from "../../"

const ButtonDefault = (props) => (
  <div>
    <Button
        marginRight='lg'
        onClick={() => alert("button clicked!")}
        text='Button Primary'
        {...props}
    />{" "}
    <Button
        marginRight='lg'
        onClick={() => alert("button clicked!")}
        text='Button Secondary'
        variant='secondary'
        {...props}
    />{" "}
    <Button
        marginRight='lg'
        onClick={() => alert("button clicked!")}
        text='Button Link'
        variant='link'
        {...props}
    />
    <Button
        disabled
        marginRight='lg'
        onClick={() => alert("button clicked!")}
        text='Button Disabled'
        {...props}
    />
  </div>
)

export default ButtonDefault

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
playbook_ui-12.2.0 app/pb_kits/playbook/pb_button/docs/_button_default.jsx
playbook_ui-12.1.0 app/pb_kits/playbook/pb_button/docs/_button_default.jsx
playbook_ui-12.0.0 app/pb_kits/playbook/pb_button/docs/_button_default.jsx
playbook_ui-11.20.0.pre.alpha.passthrough1 app/pb_kits/playbook/pb_button/docs/_button_default.jsx
playbook_ui-11.20.0.pre.alpha.railsdialog1 app/pb_kits/playbook/pb_button/docs/_button_default.jsx
playbook_ui-11.20.0.pre.alpha.focus1 app/pb_kits/playbook/pb_button/docs/_button_default.jsx
playbook_ui-11.20.0 app/pb_kits/playbook/pb_button/docs/_button_default.jsx
playbook_ui-11.19.0.pre.alpha.map1 app/pb_kits/playbook/pb_button/docs/_button_default.jsx
playbook_ui-11.19.0.pre.alpha.pagpassthrough1 app/pb_kits/playbook/pb_button/docs/_button_default.jsx
playbook_ui-11.19.0 app/pb_kits/playbook/pb_button/docs/_button_default.jsx
playbook_ui-11.18.0.pre.alpha.pagutility1 app/pb_kits/playbook/pb_button/docs/_button_default.jsx
playbook_ui-11.19.0.pre.typeahead1 app/pb_kits/playbook/pb_button/docs/_button_default.jsx
playbook_ui-11.18.0 app/pb_kits/playbook/pb_button/docs/_button_default.jsx
playbook_ui-11.17.0 app/pb_kits/playbook/pb_button/docs/_button_default.jsx
playbook_ui-11.15.0.pre.alpha.dependencies1 app/pb_kits/playbook/pb_button/docs/_button_default.jsx
playbook_ui-11.16.0.pre.alpha.paginationrails1 app/pb_kits/playbook/pb_button/docs/_button_default.jsx
playbook_ui-11.16.0 app/pb_kits/playbook/pb_button/docs/_button_default.jsx
playbook_ui-11.16.0.pre.alpha.reactupgrade1 app/pb_kits/playbook/pb_button/docs/_button_default.jsx
playbook_ui-11.15.0.pre.alpha.table1 app/pb_kits/playbook/pb_button/docs/_button_default.jsx
playbook_ui-11.16.0.pre.alpha.pagination.rails1 app/pb_kits/playbook/pb_button/docs/_button_default.jsx