Theme

Start Here

Start from the smallest working snippet, then move to interactive examples and the full API contract below.

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 { FloatButton } from '@dryui/ui';
</script>

<FloatButton.Root>
  <FloatButton.Trigger>...</FloatButton.Trigger>
  <FloatButton.Action>...</FloatButton.Action>
</FloatButton.Root>

Import options

Root package

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

Per-component subpath

ts
import { FloatButton } from '@dryui/ui/float-button'

Customize

Use the interactive examples to see common variants, states, and composition patterns before building your own.

With Actions

Bottom Left Position

Structure

Compound components always start with FloatButton.Root. Use this structure block to understand required wrappers before you wire state or styling.

FloatButton.Root
  FloatButton.Trigger
  FloatButton.Action
FloatButton.Root FloatButton.TriggerFloatButton.Action

Compose

The full API contract lives here: props, CSS variables, and the public data attributes you can target when styling.

Compound component. Start with FloatButton.Root, then add only the parts you need.

FloatButton.TriggerFloatButton.Action

FloatButton.Root

Prop Type Default Required Bindable
open
boolean
false
position
bottom-rightbottom-left
'bottom-right'
children
Snippet

Forwards <div> attributes via rest props. Common examples: id, style, role.

FloatButton.Trigger

Prop Type Default Required Bindable
size
smmdlg
'md'
children
Snippet

Forwards <button> attributes via rest props. Common examples: type, disabled, name.

FloatButton.Action

Prop Type Default Required Bindable
children
Snippet

Forwards <button> attributes via rest props. Common examples: type, disabled, name.