v2.0.0

Default beam

Brand color, 45° angle

Custom color & angle

Green, -30°

Vertical sweep

Red, 90° angle

Styled quick start

Copy this entrypoint first. It includes the imports required to get the component on screen.

svelte
<script lang="ts">
  import '@dryui/ui/themes/default.css';
  import '@dryui/ui/themes/dark.css';
  import { Beam } from '@dryui/ui';
</script>

<Beam>Content</Beam>

Import options

Root package

ts
import { Beam } from '@dryui/ui'

Per-component subpath

ts
import { Beam } from '@dryui/ui/beam'

API

Props, CSS variables, and the public data attributes you can target when styling.

Prop Type Description Default Required Bindable
color
string
Semantic color or tone applied to the component. 'var(--dry-color-fill-brand)'
width
number
2
angle
number
45
speed
number
3
intensity
number
70
blendMode
BlendMode
children
Snippet
Content rendered inside the component.