VOOZH about

URL: https://www.geeksforgeeks.org/css/primer-css-boolean-attributes/

โ‡ฑ Primer CSS Boolean Attributes - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Primer CSS Boolean Attributes

Last Updated : 23 Jul, 2025

Primer CSS is a free open-source CSS framework that is built upon systems that create the foundation of the basic style elements such as spacing, typography, and color. This systematic method makes sure our patterns are steady and interoperable with every other. Its approach to CSS is influenced by object-oriented CSS principles, functional CSS, and BEM architecture. It is highly reusable and flexible. It is created with GitHubโ€™s design system.

Primer CSS Boolean Attributes are those attributes in which we do not need to set the value. If the boolean attribute is present then the value will be true and if it is absent then the value will be false.

Primer CSS Boolean Attributes Attributes:

  • checked: This attribute is used to select the input.
  • disabled: This attribute is used to disable the input.
  • selected: This attribute is used to select the option from the given options.

Syntax:

<input type="checkbox" value="..." checked >

Example 1: This example demonstrates the implementation of Primer CSS Boolean attributes using radio input.

Output:

๐Ÿ‘ Image
 


Example 2: This example demonstrates the implementation of Primer CSS Boolean Attributes.

Output:

๐Ÿ‘ Image
 


Reference: https://primer.style/#boolean-attributes

Comment