Semantic-ui: [Button] Add a link-button style

Created on 2 Dec 2016  路  10Comments  路  Source: Semantic-Org/Semantic-UI

Write know it's not possible to have a button that looks the same as an anchor.
Sometimes it's very good to use a \

Enhancement

Most helpful comment

Actually i would love to see how semantic-ui would present a link to the ui.

All 10 comments

While we wait for this to be implemented:

// ButtonLink/index.jsx
import React from 'react'
import { Button } from 'semantic-ui-react'
import './style.css'

const ButtonLink = ({
  className = '',
  ...props
}) => <Button
  basic
  color='blue'
  className={['link', className].join(' ')}
  {...props}
/>

ButtonLink.propTypes = {
  className: React.PropTypes.string
}

export default ButtonLink
// ButtonLink/style.css
.ui.button.basic.link, .ui.button.basic.link:hover, .ui.button.basic.link:focus {
  box-shadow: 0 0 !important;
}

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

Actually i would love to see how semantic-ui would present a link to the ui.

Are there any plans to implement this?

Seems to be duplicate of #6229, which points to a PR waiting to be merged #6260
I'd also be in favour of the "tertiary" property in the master

Great, thanks!

Could the PR above please be merged into master and released? I could really use this button style

I need the Link button style too. Could anyone merged the PR asap please?

This is available as tertiary buttons in https://fomantic-ui.com/elements/button.html#tertiary

@brettstack's solution worked well for me, only change I made was to add padding: unset; to the css so it fits into a line of text.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

playgithub picture playgithub  路  3Comments

vinhtq picture vinhtq  路  3Comments

ghost picture ghost  路  3Comments

ghost picture ghost  路  3Comments

davialexandre picture davialexandre  路  3Comments