parent
2641183a5b
commit
bbad1c6c6a
4 changed files with 27 additions and 15 deletions
@ -0,0 +1,12 @@ |
||||
import './delete-button.scss'; |
||||
import { h, Component } from 'preact'; |
||||
|
||||
class DeleteButton extends Component { |
||||
render() { |
||||
return <input |
||||
className='ui-delete-button' type='button' value='✖' |
||||
{...this.props} />; |
||||
} |
||||
} |
||||
|
||||
export default DeleteButton; |
@ -0,0 +1,12 @@ |
||||
|
||||
.ui-delete-button { |
||||
border: none; |
||||
padding: 4; |
||||
display: inline; |
||||
background: none; |
||||
color: red; |
||||
|
||||
&:hover { |
||||
color: darkred; |
||||
} |
||||
} |
Reference in new issue