@0xdolan/deq-svelte
Deq shapes as typed, tree-shakable Svelte 5 components.
<script> import { RojHalfSun, DeqIcon } from "@0xdolan/deq-svelte";</script><RojHalfSun size={32} strokeWidth={1.5} absoluteStrokeWidth /><DeqIcon name="kurdish-sun" color="#ED2024" />Source: packages/svelte. Install with npm install @0xdolan/deq-svelte.
Per-shape exports
93 generated exports, one per shape, such as ArchDot, ArchDotColumn, ArrowDown. The icon list shows every shape.
Constants
DeqIcon
const DeqIcon: LegacyComponentTypeDraws any catalog shape by id (name); props are DeqIconByNameProps.
Icon
const Icon: LegacyComponentTypeDraws icon data from @0xdolan/deq-icons (icon); props are IconProps.
packageName
const packageName: '@0xdolan/deq-svelte'The npm package name.
Interfaces
DeqIconByNameProps
interface DeqIconByNamePropsProps of DeqIcon: a catalog id plus the usual props.
name: string: Catalog id, for exampleroj-half-sun.children?: Snippet<[]>: Added inside the<svg>, after the shape.size?: string | number: Width and height in px, or any CSS length. Default 24.color?: string: Stroke and dot colour (CSS colour). DefaultcurrentColor.strokeWidth?: string | number: Stroke width in grid units. Default 2.absoluteStrokeWidth?: boolean: Keep the strokestrokeWidthpx wide at any numericsize. Default false.title?: string: Accessible title. Default: the English name.""marks the icon decorative.
DeqIconProps
interface DeqIconPropsProps of every Deq icon component; other SVG attributes pass through to the <svg>.
children?: Snippet<[]>: Added inside the<svg>, after the shape.size?: string | number: Width and height in px, or any CSS length. Default 24.color?: string: Stroke and dot colour (CSS colour). DefaultcurrentColor.strokeWidth?: string | number: Stroke width in grid units. Default 2.absoluteStrokeWidth?: boolean: Keep the strokestrokeWidthpx wide at any numericsize. Default false.title?: string: Accessible title. Default: the English name.""marks the icon decorative.
IconProps
interface IconPropsProps of Icon: icon data plus the usual props.
icon: DeqIcon: The icon data, for examplerojHalfSunfrom@0xdolan/deq-icons.children?: Snippet<[]>: Added inside the<svg>, after the shape.size?: string | number: Width and height in px, or any CSS length. Default 24.color?: string: Stroke and dot colour (CSS colour). DefaultcurrentColor.strokeWidth?: string | number: Stroke width in grid units. Default 2.absoluteStrokeWidth?: boolean: Keep the strokestrokeWidthpx wide at any numericsize. Default false.title?: string: Accessible title. Default: the English name.""marks the icon decorative.
A new version of this site is available.