• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
matthewmateo

matthewmateo

pala-component-library

Public
Like
pala-component-library
Home
Code
7
backend
1
components
1
.vtignore
AGENTS.md
README.md
deno.json
H
main.ts
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
components
/
button
/
README.md
Code
/
components
/
button
/
README.md
Search
11/9/2025
Viewing readonly version of main branch: v21
View latest version
README.md

Button Component

A versatile button component with multiple variants and sizes.

Props

  • variant (string): Button style variant
    • 'primary' (default) - Blue button
    • 'secondary' - Gray button
    • 'outline' - Outlined button
  • size (string): Button size
    • 'small' - Compact button
    • 'medium' (default) - Standard button
    • 'large' - Large button
  • disabled (boolean): Disable the button (default: false)

Events

  • on:click - Forwarded click event

Usage

<script> import Button from 'https://your-val.web.val.run/button' </script> <!-- Basic usage --> <Button>Click me</Button> <!-- With props --> <Button variant="secondary" size="large">Large Secondary Button</Button> <!-- Outline variant --> <Button variant="outline">Outline Button</Button> <!-- Disabled --> <Button disabled>Disabled Button</Button> <!-- With click handler --> <Button on:click={() => alert('Clicked!')}> Click for Alert </Button>

Styling

The component includes hover effects, active states, and smooth transitions. Disabled buttons have reduced opacity and cursor changes.

FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.