Socket
Socket
Sign inDemoInstall

@washingtonpost/wpds-checkbox

Package Overview
Dependencies
33
Maintainers
4
Versions
104
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @washingtonpost/wpds-checkbox

WPDS Checkbox


Version published
Weekly downloads
1.2K
decreased by-31.23%
Maintainers
4
Created
Weekly downloads
 

Changelog

Source

1.24.0 (2024-04-09)

Bug Fixes

  • remove global styles from wpds-tokens (2886b69)

Features

Readme

Source

Checkbox

import { Checkbox } from "@washingtonpost/wpds-ui-kit";

function Component() {
  return <Checkbox variant="primary">Checkbox label</Checkbox>;
}

Checkbox Label

There are two ways you can pass in a label to the checkbox component:

  • The label prop. This option only takes in a string.
  • As a child. This allows you to style your label to your preference. You can include links, custom stylings, etc.
import { Checkbox } from "@washingtonpost/wpds-ui-kit";

function Component() {
  const StyledLabel = styled("div", {
    textDecoration: "line-through",
  });

  return (
    <Checkbox variant="primary" id="checkbox1">
      <StyledLabel>This is the label</StyledLabel>
    </Checkbox>
  );
}
import { Checkbox } from "@washingtonpost/wpds-ui-kit";

function Component() {
  return (
    <Checkbox variant="primary" id="checkbox2">
      You can pass in links.{" "}
      <a href="build.washingtonpost.com">Like this link to our docs site</a>
    </Checkbox>
  );
}

FAQs

Last updated on 09 Apr 2024

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