Security News
UK Officials Consider Banning Ransomware Payments from Public Entities
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
@bliss-design-system/button
Advanced tools
<bliss-button>
does excellent things.
To install this component, run:
yarn add @bliss-design-system/button
To use this component, you'll need to register the component to the window
's Custom Elements Registry. In order to achieve that, you'll want to call this function within your application's client-facing entry file:
import { blissRegisterButton } from '@bliss-design-system/button';
blissRegisterButton(); // Registers <bliss-button>
That will make the component available in your application and you can use it like this:
<!-- renders a primary button with a default theme in medium size -->
<bliss-button>I am button</bliss-button>
To use the button with an icon, you'll need the <bliss-icon>
component, and you can use it like this:
<bliss-button>
<bliss-icon slot="icon" name="trash"></bliss-icon>
Delete
</bliss-button>
To use the button with a loading spinner, you'll need the <bliss-loading>
component, and you can use it like this:
<bliss-button>
<bliss-loading slot="icon"></bliss-loading>
Doing things
</bliss-button>
There are multiple attributes you can add to the button to leverage different needs, e.g. for a secondary, full width, critical button:
<bliss-button variant="secondary" theme="critical" full-width>
Very wide and important button
</bliss-button>
In addition to the examples above, the you can also render an <a>
with button styling (including the button attributes defined below), by providing a href
:
<bliss-button href="www.example.com">
I'm a link!
</bliss-button>
The component accepts the following properties:
Attribute | Type | Description | Default | Required | Options |
---|---|---|---|---|---|
size | string | defines the button size | medium | no | small , medium |
type | string | defines the button type | button | no | button , submit , reset |
theme | string | button theme | default | no | default , neutral , critical |
variant | string | button variant | primary | no | primary , secondary , `ghost |
disabled | boolean | disable the button | false | no | - |
loading | boolean | display the loading spinner | false | no | - |
icon-only | boolean | display an icon only | false | no | - |
icon-trailing | boolean | display icon after the label | false | no | - |
full-width | boolean | make the button full width of its container | false | no | - |
Anchor specific attributes below | |||||
href | string | URL | '' | no | - |
target | string | where to display the linked URL | '' | no | _blank , _self , _top , _parent |
rel | string | relationship of the linked URL | '' | no | - |
download | string | download instead of navigate | '' | no | - |
If you'd like to contribute, please open an issue with your suggested change on our Proposal Board. Once that is accepted, either the Bliss team will work on it or you can make changes locally by doing the following:
# Clone this repository
git clone https://gitlab.com/bliss-design-system/components.git
# Move into the component toolkit
cd components/
# Install the dependencies
yarn
You don't need to move into the package's directory to run storybook, tests or anything else. All of those commands exist in the root of the component toolkit, so while you can work on the component within its specific folder, you don't need to move through directories to run anything.
You can see all of your changes as you make them on Storybook.
To run a local instance of Storybook for this component, run:
yarn storybook
If you want to test as you develop, run:
yarn test
// or
yarn test:watch
We follow the Conventional Commits specification, meaning that you'll be prompted to fill out a descriptive message when you commit. We also use these commits to manage our releases, so we appreciate details.
As a guideline for this component, we use:
fix
for bug fixes, minor stylistic improvements, etc.feat
for any backward compatible API changes.For anything that breaks backwards compatibility or introduces significant changes that require a major version change, please get in touch with the team.
When you're ready to open a merge request, please use a descriptive title and fill out the provided template.
The team will be notified, but it helps to post your merge request in #bliss_support.
We'll fill this section out as we go and as issues are raised. But if you haven't found what you're looking for, get in touch via bliss@bryter.io or via the #bliss_support Slack channel ✨.
FAQs
Button component, or an anchor element styled as a button.
The npm package @bliss-design-system/button receives a total of 2 weekly downloads. As such, @bliss-design-system/button popularity was classified as not popular.
We found that @bliss-design-system/button demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
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.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.