{"id":12,"date":"2026-12-01T15:34:17","date_gmt":"2026-12-01T15:34:17","guid":{"rendered":"https:\/\/wp-themes.design\/?page_id=12"},"modified":"2026-12-01T20:58:41","modified_gmt":"2026-12-01T20:58:41","slug":"kit-components","status":"publish","type":"page","link":"https:\/\/wp-themes.design\/?page_id=12","title":{"rendered":"Components"},"content":{"rendered":"\n<header class=\"hero shell\"><h1 data-ysx-demo-heading>Component gallery<\/h1><p class=\"measure\">Explore button styles, form controls, status feedback and motion.<\/p><div class=\"actions\"><a class=\"action primary\" href=\"?page_id=67\">Explore the full component library<\/a><\/div><\/header>\n<section class=\"section shell\"><div class=\"grid two\">\n<article class=\"surface stack\" data-card-shimmer><h2>Buttons and dialogs<\/h2><div class=\"actions\"><button class=\"action primary\" type=\"button\" data-open-dialog aria-haspopup=\"dialog\">Open dialog<\/button><button class=\"action\" type=\"button\" disabled>Disabled<\/button><\/div><dialog data-demo-dialog aria-labelledby=\"ysx-dialog-title\" aria-describedby=\"ysx-dialog-description\"><h3 id=\"ysx-dialog-title\">Dialog example<\/h3><p id=\"ysx-dialog-description\">An example of focus and layered surfaces.<\/p><form method=\"dialog\"><button class=\"action primary\">Close<\/button><\/form><\/dialog><\/article>\n<article class=\"surface stack\" data-card-shimmer><h2>Form controls<\/h2><form class=\"stack\" data-sample-form><label>Name <input name=\"name\" required placeholder=\"Example text\"><\/label><label>Display mode <select name=\"mode\"><option>Compact<\/option><option>Comfortable<\/option><\/select><\/label><button class=\"action primary\">Preview feedback<\/button><output aria-live=\"polite\"><\/output><\/form><\/article>\n<article class=\"surface stack\" data-card-shimmer><h2>Expandable content<\/h2><details><summary>Open an accordion<\/summary><p>Expandable content uses the same colour and spacing tokens.<\/p><\/details><\/article>\n<article class=\"surface stack\" data-card-shimmer><h2>Card reflection<\/h2><p>Watch the light pass across the surface.<\/p><button class=\"action\" type=\"button\" data-shimmer-replay>Replay reflection<\/button><\/article>\n<\/div><\/section>\n\n\n\n<section class=\"section shell ysx-gallery\" aria-labelledby=\"ysx-selection-title\">\n  <header><h2 id=\"ysx-selection-title\">Selection and input controls<\/h2><p class=\"measure\">Try the controls with sample values.<\/p><\/header>\n  <div class=\"grid two\">\n    <article class=\"surface stack\" data-card-shimmer>\n      <h3>Checkboxes, radio buttons and switches<\/h3>\n      <fieldset class=\"ysx-group\"><legend>Project options<\/legend>\n        <label class=\"ysx-option\"><input type=\"checkbox\" checked> Contact page<\/label>\n        <label class=\"ysx-option\"><input type=\"checkbox\"> Image gallery<\/label>\n        <label class=\"ysx-option\"><input type=\"checkbox\" disabled> Unavailable option<\/label>\n      <\/fieldset>\n      <fieldset class=\"ysx-group\"><legend>Layout density<\/legend>\n        <label class=\"ysx-option\"><input type=\"radio\" name=\"ysx-demo-density\" value=\"compact\" checked> Compact<\/label>\n        <label class=\"ysx-option\"><input type=\"radio\" name=\"ysx-demo-density\" value=\"comfortable\"> Comfortable<\/label>\n      <\/fieldset>\n      <label class=\"ysx-option\"><input type=\"checkbox\" role=\"switch\"> Demo notifications<\/label>\n    <\/article>\n    <article class=\"surface stack\" data-card-shimmer>\n      <h3>Field variants<\/h3>\n      <label class=\"ysx-field\">Preferred date<input type=\"date\"><\/label>\n      <label class=\"ysx-field\">Number of pages<input type=\"number\" min=\"1\" max=\"20\" value=\"5\"><\/label>\n      <label class=\"ysx-field\">Sample level<input type=\"range\" min=\"0\" max=\"100\" value=\"60\"><\/label>\n      <label class=\"ysx-field\">Project notes<textarea rows=\"2\" placeholder=\"Describe your project\"><\/textarea><\/label>\n      <label class=\"ysx-field\">Example attachment<input type=\"file\" aria-describedby=\"ysx-file-help\"><\/label>\n      <p id=\"ysx-file-help\">File picker preview. Your file stays on this device.<\/p>\n    <\/article>\n  <\/div>\n<\/section>\n<section class=\"section shell ysx-gallery\" aria-labelledby=\"ysx-charts-title\">\n  <header><h2 id=\"ysx-charts-title\">Charts and indicators<\/h2><p class=\"measure\">Sample data with the exact values shown beside each graphic.<\/p><\/header>\n  <div class=\"grid two\">\n    <figure class=\"surface stack\" data-card-shimmer aria-labelledby=\"ysx-bars-title\">\n      <h3 id=\"ysx-bars-title\">Monthly visits<\/h3>\n      <ul class=\"ysx-bars\"><li><span>Jan<\/span><span class=\"ysx-track\" aria-hidden=\"true\"><span style=\"--value:42%\"><\/span><\/span><strong>42<\/strong><\/li>\n<li><span>Feb<\/span><span class=\"ysx-track\" aria-hidden=\"true\"><span style=\"--value:58%\"><\/span><\/span><strong>58<\/strong><\/li>\n<li><span>Mar<\/span><span class=\"ysx-track\" aria-hidden=\"true\"><span style=\"--value:51%\"><\/span><\/span><strong>51<\/strong><\/li>\n<li><span>Apr<\/span><span class=\"ysx-track\" aria-hidden=\"true\"><span style=\"--value:70%\"><\/span><\/span><strong>70<\/strong><\/li>\n<li><span>May<\/span><span class=\"ysx-track\" aria-hidden=\"true\"><span style=\"--value:76%\"><\/span><\/span><strong>76<\/strong><\/li>\n<li><span>Jun<\/span><span class=\"ysx-track\" aria-hidden=\"true\"><span style=\"--value:88%\"><\/span><\/span><strong>88<\/strong><\/li><\/ul>\n      <figcaption>Visits per month. Each bar uses a scale from 0 to 100.<\/figcaption>\n    <\/figure>\n    <figure class=\"surface stack\" data-card-shimmer aria-labelledby=\"ysx-donut-title\">\n      <h3 id=\"ysx-donut-title\">Traffic sources<\/h3>\n      <div class=\"ysx-donut\" aria-hidden=\"true\"><span>100%<\/span><\/div>\n      <ul class=\"ysx-legend\"><li style=\"--swatch:var(--primary)\">Search <strong>50%<\/strong><\/li><li style=\"--swatch:var(--success)\">Direct <strong>30%<\/strong><\/li><li style=\"--swatch:var(--muted-foreground)\">Referrals <strong>20%<\/strong><\/li><\/ul>\n    <\/figure>\n    <article class=\"surface stack\" data-card-shimmer>\n      <h3>Progress and capacity<\/h3>\n      <label class=\"ysx-field\">Setup progress \u00b7 68%<progress value=\"68\" max=\"100\">68%<\/progress><\/label>\n      <label class=\"ysx-field\">Storage used \u00b7 34%<meter value=\"34\" min=\"0\" max=\"100\" high=\"85\" optimum=\"0\">34%<\/meter><\/label>\n    <\/article>\n    <article class=\"surface stack\" data-card-shimmer>\n      <h3>Status labels<\/h3>\n      <div class=\"ysx-status-list\"><span class=\"badge good\">Active<\/span><span class=\"badge\">Pending<\/span><span class=\"badge\">Archived<\/span><\/div>\n      <p>Use text labels so the meaning is visible even without colour.<\/p>\n    <\/article>\n  <\/div>\n<\/section>\n\n","protected":false},"excerpt":{"rendered":"<p>Component gallery Explore button styles, form controls, status feedback and motion. Explore the full component library Buttons and dialogs Open dialogDisabled Dialog example An example of focus and layered surfaces. Close Form controls Name Display mode CompactComfortablePreview feedback Expandable content Open an accordion Expandable content uses the same colour and spacing tokens. Card reflection Watch [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":"","_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"","_yoast_wpseo_focuskw":"","rank_math_title":"","rank_math_description":"","rank_math_focus_keyword":"","_aioseop_title":"","_aioseop_description":""},"class_list":["post-12","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/wp-themes.design\/index.php?rest_route=\/wp\/v2\/pages\/12","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp-themes.design\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/wp-themes.design\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/wp-themes.design\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp-themes.design\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12"}],"version-history":[{"count":3,"href":"https:\/\/wp-themes.design\/index.php?rest_route=\/wp\/v2\/pages\/12\/revisions"}],"predecessor-version":[{"id":75,"href":"https:\/\/wp-themes.design\/index.php?rest_route=\/wp\/v2\/pages\/12\/revisions\/75"}],"wp:attachment":[{"href":"https:\/\/wp-themes.design\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}