1.0.2 • Published 2 years ago

svelte-tabcontent v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

svelte-tabcontent

A fully-customizable tab UI component to go with your beautiful designs

screenshot

Demo

Installation

npm install svelte-tabcontent --save

Basic usage

<script>
  import TabContent from 'svelte-tabcontent'
</script>

<TabContent
  backgroundColor="orange"
  borderColor="brown"
  borderWidth={2}
  >
    <h1>What an awesone component !</h1>
</TabContent>

Props

PropTypeDefaultDescription
backgroundColorCSS color#BBBThe background color.
borderColorCSS color#BBBThe border color.
borderWidthnumber0Border width in pixel.
roundTopnumber50Roundness aspect of the top curve (in %).
roundBottomnumber50Roundness aspect of the bottom curve (in %).
curveWidthnumber50Total width of the roundness part (in px).
depthnumber80Depth of the tab (in %).
paddingnumber0x padding arround the content.
inversedbooleanfalseSet to true to make it hand from above.
alignstring'center'Align on the x axis ('left','center','right')
shiftXnumber0Shift on the x axis in px).
patternstringnullSVG pattern element
patternIdstring'pattern'Name of the pattern element
shapeVisiblebooleantrueSet to false for hidding the shape

License

MIT