You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit updates the documentation to reflect features that were
recently implemented but not yet documented:
- Updated Document metadata section with all implemented W3Link types
(Alternate, Author, Bookmark, DNSPrefetch, Expect, External, Help,
License, Manifest, ModulePreload, Next, Nofollow, NoOpener, NoReferrer,
Opener, Pingback, Prefetch, Previous, PrivacyPolicy, SearchLink, Tag,
TermsOfService)
- Added Viewport meta element documentation
- Added referrerPolicy global attribute modifier
- Created new Tailwind CSS modifiers section with visibility and zIndex
modifiers
Co-authored-by: Claude <noreply@anthropic.com>
[`lang`](https://html.spec.whatwg.org/multipage/dom.html#attr-lang) | ``language(_:)`` | Sets the primary language for the view's contents
304
304
[`nonce`](https://html.spec.whatwg.org/multipage/urls-and-fetching.html#attr-nonce) | ``nonce(_:)`` | A cryptographic nonce used by Content Security Policy
305
305
[`popover`](https://html.spec.whatwg.org/multipage/popover.html#attr-popover) | ``popover(_:)`` | Indicates that the element is a popover element
306
+
[`referrerpolicy`](https://html.spec.whatwg.org/multipage/urls-and-fetching.html#referrer-policy-attribute) | ``referrerPolicy(_:)`` | Controls how much referrer information should be included with requests
306
307
`slot` | ``slot(_:)`` | Assigns a slot in a shadow DOM shadow tree
307
308
[`spellcheck`](https://html.spec.whatwg.org/multipage/interaction.html#attr-spellcheck) | ``spellcheck(_:)`` | Specifies whether the element may be checked for spelling errors
308
309
[`style`](https://html.spec.whatwg.org/multipage/dom.html#attr-style) | ``inlineStyle(_:)`` | Contains CSS styling declarations. Prefer TailwindCSS modifiers when possible
309
310
[`tabindex`](https://html.spec.whatwg.org/multipage/interaction.html#attr-tabindex) | ``tabIndex(_:)`` or ``focusable()`` | Controls focus and keyboard navigation
310
311
[`title`](https://html.spec.whatwg.org/multipage/dom.html#attr-title) | ``tooltip(_:)`` | Advisory information, typically shown as a tooltip
311
312
[`translate`](https://html.spec.whatwg.org/multipage/dom.html#attr-translate) | ``translatable(_:)`` | Specifies whether content should be translated
312
313
[`writingsuggestions`](https://html.spec.whatwg.org/multipage/interaction.html#attr-writingsuggestions) | ``writingSuggestions(_:)`` | Controls whether browser-provided writing suggestions should be offered
314
+
315
+
## Tailwind CSS modifiers
316
+
317
+
Slipstream provides Swift-based Tailwind CSS modifiers for styling. Below is a reference of key
318
+
CSS properties and their Slipstream equivalents.
319
+
320
+
### Layout
321
+
322
+
CSS property | Slipstream modifier | Notes
323
+
:------------|:-------------------|:------
324
+
[`visibility`](https://tailwindcss.com/docs/visibility) | ``visibility(_:)`` | Controls the visibility of an element (visible, invisible, collapse)
325
+
[`z-index`](https://tailwindcss.com/docs/z-index) | ``zIndex(_:)`` | Controls the vertical stacking order of elements
0 commit comments