Biçe naverokê

Ev werger bi alîkariya AI hatiye amadekirin û divê axêverekî zikmakî lê binêre.

@0xdolan/deq-svelte

Ev naverok hêj bi zimanê te tune.

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: LegacyComponentType

Draws any catalog shape by id (name); props are DeqIconByNameProps.

Icon

const Icon: LegacyComponentType

Draws icon data from @0xdolan/deq-icons (icon); props are IconProps.

packageName

const packageName: '@0xdolan/deq-svelte'

The npm package name.

Interfaces

DeqIconByNameProps

interface DeqIconByNameProps

Props of DeqIcon: a catalog id plus the usual props.

  • name: string: Catalog id, for example roj-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). Default currentColor.
  • strokeWidth?: string | number: Stroke width in grid units. Default 2.
  • absoluteStrokeWidth?: boolean: Keep the stroke strokeWidth px wide at any numeric size. Default false.
  • title?: string: Accessible title. Default: the English name. "" marks the icon decorative.

DeqIconProps

interface DeqIconProps

Props 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). Default currentColor.
  • strokeWidth?: string | number: Stroke width in grid units. Default 2.
  • absoluteStrokeWidth?: boolean: Keep the stroke strokeWidth px wide at any numeric size. Default false.
  • title?: string: Accessible title. Default: the English name. "" marks the icon decorative.

IconProps

interface IconProps

Props of Icon: icon data plus the usual props.

  • icon: DeqIcon: The icon data, for example rojHalfSun from @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). Default currentColor.
  • strokeWidth?: string | number: Stroke width in grid units. Default 2.
  • absoluteStrokeWidth?: boolean: Keep the stroke strokeWidth px wide at any numeric size. Default false.
  • title?: string: Accessible title. Default: the English name. "" marks the icon decorative.