0.2.9 • Published 11 months ago

skateui v0.2.9

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Skate UI

Objective:

  • Provide components that are commonly desired in web development, yet not so easy to implement.
  • UI component 100% compatible with vanilla HTML.
  • Style should be easily customizable via css without implementing additional custom attributes.

Components:

  • sui-nav: Navbar that hides when scrolling down, and shows when scrolling up.

    Attributes:

    • auto-hide: Number(Higher number means it will hide slower), default is 3.
  • sui-flextext: Text that auto scales.

    Attributes:

    • min-size: number (Minimum font size allowed to scale down to)
    • max-size: number (Maximum font size allowed to scale up to)
  • sui-tooltip: Tooltip that shows when hovering over an element.

    Slots:

    • tool: Element that will be hovered over.
    • tip: Element that will be shown as a tooltip.
  • sui-overlay: Fully customizable overlay that shows when clicked.

    Attributes:

    • position: "top" | "bottom" | "left" | "right" | "center"(default)
    • transition-time: CSS time value, default is 0.25s

    Methods:

    • open(): Opens the overlay.
    • close(): Closes the overlay.

  • sui-textarea: Textarea that auto resizes.

    Note:

    • Remove box-shadow to remove outline.
    • Use :focus-within to style when focused.

Example

<!DOCTYPE html>

<head>
    <script type='module' src="https://cdn.jsdelivr.net/npm/skateui@latest/dist/skateui/skateui.esm.js"></script>
</head>

<body style="margin:0;">
    <!-- You can now use skateui components -->
    <sui-nav style='padding: .5em;background-color:blue;color:white'>
        <h2>Skate Navbar</h2>
    </sui-nav>

    <br><br>

    <sui-flextext>Hello my name is Baksa</sui-flextext>
    
    <br><br>

    <sui-tooltip>
      <div slot="tool"
        style="font-size: 1.2em; font-weight: bold; background-color: red;color:white;padding: .25em;cursor: pointer;">
        Hover me to say HI</div>
      <div slot="tip" style="background-color: black;color:white;padding:.5em;">
        Hello
      </div>
    </sui-tooltip>
    
    <br><br>

    <button onclick='overlay.open()'>Click me</button>
    <sui-overlay id="overlay" onclick="this.close()">
        <div style="background-color:antiquewhite;border: solid 4px black;padding:1em;">
            <h1>Hello Skate UI</h1>
        </div>
    </sui-overlay>
    
    <br><br>
    
    <sui-textarea placeholder="Skate Textarea"></sui-textarea>
</body>
0.2.0

12 months ago

0.2.7

11 months ago

0.2.6

11 months ago

0.2.9

11 months ago

0.2.8

11 months ago

0.2.3

12 months ago

0.2.2

12 months ago

0.2.5

12 months ago

0.2.4

12 months ago

0.1.153

2 years ago

0.1.152

2 years ago

0.1.151

2 years ago

0.1.118

2 years ago

0.1.117

2 years ago

0.1.119

2 years ago

0.1.114

2 years ago

0.1.113

2 years ago

0.1.116

2 years ago

0.1.115

2 years ago

0.1.150

2 years ago

0.1.129

2 years ago

0.1.128

2 years ago

0.1.125

2 years ago

0.1.124

2 years ago

0.1.127

2 years ago

0.1.126

2 years ago

0.1.121

2 years ago

0.1.120

2 years ago

0.1.123

2 years ago

0.1.122

2 years ago

0.1.139

2 years ago

0.1.136

2 years ago

0.1.135

2 years ago

0.1.138

2 years ago

0.1.137

2 years ago

0.1.132

2 years ago

0.1.131

2 years ago

0.1.134

2 years ago

0.1.133

2 years ago

0.1.130

2 years ago

0.1.147

2 years ago

0.1.146

2 years ago

0.1.149

2 years ago

0.1.148

2 years ago

0.1.143

2 years ago

0.1.142

2 years ago

0.1.145

2 years ago

0.1.144

2 years ago

0.1.141

2 years ago

0.1.140

2 years ago

0.1.96

3 years ago

0.1.98

3 years ago

0.1.91

3 years ago

0.1.92

3 years ago

0.1.93

3 years ago

0.1.94

3 years ago

0.1.95

3 years ago

0.1.110

3 years ago

0.1.112

3 years ago

0.1.111

3 years ago

0.1.107

3 years ago

0.1.106

3 years ago

0.1.109

3 years ago

0.1.108

3 years ago

0.1.103

3 years ago

0.1.102

3 years ago

0.1.105

3 years ago

0.1.104

3 years ago

0.1.101

3 years ago

0.1.100

3 years ago

0.1.9

3 years ago

0.1.81

4 years ago

0.1.79

4 years ago

0.1.80

4 years ago

0.1.78

4 years ago

0.1.76

4 years ago

0.1.77

4 years ago

0.1.71

4 years ago

0.1.69

4 years ago

0.1.68

4 years ago

0.1.67

4 years ago

0.1.64

4 years ago

0.1.63

4 years ago

0.1.62

4 years ago

0.1.61

4 years ago

0.1.60

4 years ago

0.1.59

4 years ago

0.1.58

4 years ago

0.1.57

4 years ago

0.1.56

4 years ago

0.1.55

4 years ago

0.1.53

4 years ago

0.1.5

4 years ago

0.1.33

4 years ago

0.1.32

4 years ago

0.1.1

4 years ago