New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@bento/button

Package Overview
Dependencies
Maintainers
4
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bento/button

Button component built on top of the Pressable primitive

latest
Source
npmnpm
Version
0.1.4
Version published
Maintainers
4
Created
Source

Button

The @bento/button package exports the Button component, which is a complete button component built on top of the Pressable primitive.

Installation

npm install --save @bento/button

Props

The following properties are available to be used on the Button component:

PropTypeRequiredDescription
childrenReactNodeYesThe content to display inside the button.
onPress(e: PressEvent) => voidNoHandler that is called when the pressable is pressed.
Similar to the standard onClick event, but normalized to handle all interaction methods consistently.
onPressStart(e: PressEvent) => voidNoHandler that is called when a press interaction starts.
onPressEnd(e: PressEvent) => voidNoHandler that is called when a press interaction ends, either
over the target or when the pointer leaves the target.
onPressChange(isPressed: boolean) => voidNoHandler that is called when the press state changes.
onPressUp(e: PressEvent) => voidNoHandler that is called when a press is released over the target, regardless of
whether it started on the target or not.
slotstringNoA named part of a component that can be customized. This is implemented by the consuming component.
The exposed slot names of a component are available in the components documentation.
childRefRef<HTMLButtonElement>NoA ref to the button element. This is useful if you want to access the button element directly.
slotsRecord<string, object | Function>NoAn object that contains the customizations for the slots.
The main way you interact with the slot system as a consumer.

Examples

import { Button } from '@bento/button';
/* v8 ignore next */
import React from 'react';

export function ButtonExample() {
  return (
    <Button
      onPress={function handlePress() {
        console.log('button pressed!');
      }}
    >
      Click me!
    </Button>
  );
}

Keywords

accessibility

FAQs

Package last updated on 18 Dec 2025

Did you know?

Socket

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