1.0.6 • Published 3 years ago

@bobthered/svelte-button v1.0.6

Weekly downloads
22
License
ISC
Repository
github
Last release
3 years ago

@bobthered/svelte-button

Svelte component for creating buttons with tailwindcss

Installation

npm i -D @bobthered/svelte-button

Basic Usage

<script>
  import Button from '@bobthered/svelte-button'
</script>

<Button>Click Here</Button>

Available Props

PropDefaultDescription
bgbg-primary-500 hover:bg-whiteSet bg class(s)
class""Add additional class(s)
cursorcursor-pointerSet cursor class(s)
displayinline-flexSet display class(s)
durationduration-200Set duration class(s)
fontSizetext-smSet font size class(s)
fontWeightfont-mediumSet font weight class(s)
itemsitems-centerSet items class(s)
justifyContentjustify-centerSet justify content class(s)
href""If "type" prop is set to "link" use this to set the link address
outlinefocus:outline-noneSet outline class(s)
paddingpy-4 px-10Set padding class(s)
ref""Set component reference
roundedroundedSet rounded class(s)
textColortext-white hover:text-primary-500Set text color class(s)
textTransformuppercaseSet text transform class(s)
transitiontransitionSet transition class(s)
typelinkSet this to either "link" or "submit" to change node type
1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago