Svelte Material UI

repository·master·Indexed 25 days ago

https://github.com/hperrin/svelte-material-ui

A collection of Svelte Material UI components including Accordion, Autocomplete, Badge, Banner, Bottom App Bar, Button, Card, Checkbox, Chip Input, and Chips. It provides tools to implement Material Design's shadow and depth system (z-space) through CSS classes, Sass mixins, and elevation overlay management.

Tokens
71.5K
Snippets
214
Records
597
Agent score
86%

What's inside svelte-material-ui

  1. Use Svelte Material UI Banners

    master

    Banners are used to display important, succinct messages that require user action to be dismissed. They are persistent, non-modal components that should be displayed at the top of the viewport (typically below a top app bar). Note that only one banner should be shown to the user at any time.

    You can view interactive examples and usage information at the official demo site: https://sveltematerialui.com/demo/banner

  2. Migrate from SMUI 6 to SMUI 7

    master

    SMUI 7 migrated to MDC 14.0 and requires Svelte 4 (Svelte 3 is no longer supported).

    Breaking Changes

    • Tooling: Build tools (Rollup/Webpack) must be Svelte-aware via conditional exports.
    • Component Tags: @smui/common/elements components are removed. Use the tag prop on components instead (e.g., <Button tag="div">).
    • SVG Components: If using component={Svg}, change to tag="svg".
    • Types: *ComponentDev types are removed. Use the component itself as the type. Components with component or tag props now use generic arguments for the tag type.
    • TextField: The Input component from @smui/textfield sets value to Number.NaN when empty.

    Component Changes

    • Banner: Added autoClose prop and SMUIBanner:actionClicked event.
    • Dialog: Added sheet and noContentPadding props.
    • FAB/Switch: Added focusRing prop for High Contrast Mode support.
    • List: Added disabledItemsFocusable and wrapper (on Item).