Socket
Socket
Sign inDemoInstall

@phase2/outline-button

Package Overview
Dependencies
10
Maintainers
10
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @phase2/outline-button

The Outline Components for the web button component


Version published
Maintainers
10
Install size
3.81 MB
Created

Readme

Source

outline-button

The Outline Button component

Properties

PropertyAttributeTypeDefaultDescription
buttonLabelbutton-labelstringARIA label attribute to pass down to the resulting button or a
element. This is required for accessibility if we use a button
with an icon only.
buttonSizebutton-sizestring"medium"The button size to use.
buttonTargetbutton-targetstringThe target to use for a link, used in conjunction with the url attribute.
buttonUrlbutton-urlstringThe url to use for a link. This will render an anchor element.
Do not set this prop if you want to render a button element.
buttonVariantbutton-variantstring"primary"The button style variant to use.
hasLeftIconboolean
hasRightIconboolean
isDisabledis-disabledbooleanfalseWhether the button is disabled. Only applies to
implementations not using the url property
onClickonClick() => voidA click handler to be passed only to onClick. DO NOT USE @click on this component.
onKeyUponKeyUp() => voidA keyUp handler to be passed to the onKeyUp. DO NOT USE @keyup on this component.
slotsSlotController"new SlotController(\n this, // This, the host element.\n false // To shift or not to shift LightDom nodes to ShadowDOM.\n )"

Methods

MethodTypeDescription
iconTemplate(exists: boolean, slot: string): TemplateResult<ResultType> | nullIcon template

exists: Whether the icon slot exists.
slot: The slot name to use.

Slots

NameDescription
default slot, used for button text.
leftslot used for left side icon.
rightslot used for right side icon.

Keywords

FAQs

Last updated on 23 Aug 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc