Reset
Native Solid 2 fork. Original documentation and designs © WorkOS; historical posts retain their original context.
API Reference
Reset component is used to aggressively reset browser styles on a specific element.
It renders a Slot primitive that:
- Accepts a single-target factory and resets its chosen host
- Removes opinionated browser styles
- Sets idiomatic layout defaults, like
display: blockfor images orwidth: stretchfor inputs - Sets the cursor style according to your theme settings
- Adds
box-sizing: border-box
Examples
Anchor
Abbreviation
ABR
Address
Address
Article
Aside
Bold
Bold text
Bi-directional isolation
Bi-directional isolation
Bi-directional override
Bi-directional override
Block quote
Block quote
Button
Citation
Citation
Code
Computer codeData
Machine-readable equivalent
Deleted text
Details
Summary for a details element
Additional detailsDefinition
Definition
Div
Div
Emphasized text
Emphasized text
Fieldset
Figure
Figure caption
Footer
Form
Heading
Heading
Header
Italic text
Italic text
Inline frame
When reset, <iframe> elements get display: block and width: stretch.
Image
When reset, <img> elements get display: block and max-width: 100%.
Input
When reset, textual <input> types get display: block and width: stretch.
Inserted text
Inserted text
Keyboard input
Keyboard input
Label
Legend
List item
Main
Marked text
Marked text
Navigation
Ordered list
- Coffee
- Tea
- Milk
Output
Paragraph
Paragraph
Preformatted text
Preformatted text: " "
Quote
Quote
Strikethrough text
Sample output
Sample output
Section
Select
Small text
Small text
Span
Span
Strong text
Strong text
Subscript text
Subscript text
Superscript text
Superscript text
SVG
When reset, <svg> elements get display: block, max-width: 100%, and flex-shrink: 0.
Table
| Column header | Column header |
|---|---|
| Row header | Cell data |
| Row header | Cell data |
| Row header | Cell data |
Text area
Time
Unarticulated annotation
Unarticulated annotation
Unordered list
- Coffee
- Tea
- Milk
Variable
Variable