@sesamy/sesamy-js 1.34.6 → 1.34.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -168,6 +168,27 @@ These are the available configuration options, with their default values:
168
168
  }
169
169
  ```
170
170
 
171
+ # Custom HTML Attributes
172
+
173
+ ## Visibility
174
+
175
+ # Handle Visibility Attribute Documentation
176
+
177
+ ## Overview
178
+
179
+ The `sesamy-visibility` attribute allows dynamic visibility control of HTML elements based on the authentication state of a user.
180
+
181
+ ## Usage
182
+
183
+ This attribute can be added to HTML elements to automatically show or hide them based on authentication status.
184
+
185
+ ### Example
186
+
187
+ ```html
188
+ <div sesamy-visibility="logged-in">Welcome, User!</div>
189
+ <div sesamy-visibility="not-logged-in">Please log in.</div>
190
+ ```
191
+
171
192
  # Auth API
172
193
 
173
194
  ## `isAuthenticated()`