Title: Component Boolean variables · Issue #84 · ycode/ycode · GitHub
Open Graph Title: Component Boolean variables · Issue #84 · ycode/ycode
X Title: Component Boolean variables · Issue #84 · ycode/ycode
Description: Problem or motivation Components would be more useful if they could have boolean variables to control optional elements. An obvious use case would be to control visibility of some part of the component. Alternatively for this specific us...
Open Graph Description: Problem or motivation Components would be more useful if they could have boolean variables to control optional elements. An obvious use case would be to control visibility of some part of the compo...
X Description: Problem or motivation Components would be more useful if they could have boolean variables to control optional elements. An obvious use case would be to control visibility of some part of the compo...
Opengraph URL: https://github.com/ycode/ycode/issues/84
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Component Boolean variables","articleBody":"### Problem or motivation\n\nComponents would be more useful if they could have boolean variables to control optional elements. An obvious use case would be to control visibility of some part of the component.\n\nAlternatively for this specific usecase, it would be acceptable to have an new 'Conditional visibility' option that allowed you to select a variable and some condition e.g. 'has content' or 'has no content'\n\n### Proposed solution\n\nNew conditional visibility option using component variables would probably be good enough\n\n### Alternatives considered\n\n_No response_\n\n### Area\n\nVisual Editor\n\n### Additional context\n\n_No response_","author":{"url":"https://github.com/rjewson","@type":"Person","name":"rjewson"},"datePublished":"2026-03-23T20:38:35Z","url":"https://github.com/ycode/ycode/issues/84"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9c8f93b0-5b80-e59c-6129-201b6d2d260f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B646:346DEB:B79F2:F9CB2:6AFE330F |
| html-safe-nonce | 51e81be9370bfc217879c6e65f0be4913d1358612e5a904b08b3433c594cb1db |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjQ2OjM0NkRFQjpCNzlGMjpGOUNCMjo2QUZFMzMwRiIsInZpc2l0b3JfaWQiOiIyOTMwMTI3NzY0NTkxNjIwODc5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6672911aa1335f2cfc9f163d6880ec145eb290797e2cdd52e40e884b4fb836c3 |
| hovercard-subject-tag | issue:4123584945 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ycode/ycode/84/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b8b9be5bee810b7908f812a63090fd13cd2bb35469f67d0ea03f5051878eb731/ycode/ycode/issues/84 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b8b9be5bee810b7908f812a63090fd13cd2bb35469f67d0ea03f5051878eb731/ycode/ycode/issues/84 |
| og:image:alt | Problem or motivation Components would be more useful if they could have boolean variables to control optional elements. An obvious use case would be to control visibility of some part of the compo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rjewson |
| hostname | github.com |
| expected-hostname | github.com |
| None | 260deedcf4630abb0a6b4aaa02fd2af70eab44d2529712694ceae59ca131b02e |
| turbo-cache-control | no-preview |
| go-import | github.com/ycode/ycode git https://github.com/ycode/ycode.git |
| octolytics-dimension-user_id | 65892203 |
| octolytics-dimension-user_login | ycode |
| octolytics-dimension-repository_id | 1165452593 |
| octolytics-dimension-repository_nwo | ycode/ycode |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1165452593 |
| octolytics-dimension-repository_network_root_nwo | ycode/ycode |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8b413ea7a9b010f4f2ebbb923b041b0d6091dd94 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width