Documentation navigation

Published API · 0.1.0-rc.1

themes · components/strong

Published themes API declarations for components/strong.

./components/strong

@wsagency/wseffect-themes · MIT · source · MIT license · WS-AGENCY-NOTICE

This entry point is published in @wsagency/wseffect-themes@0.1.0-rc.1. Import it from the package subpath shown below; the signatures and documentation are read from the installed package declarations.

import * as Wseffect from '@wsagency/wseffect-themes/components/strong'

Exported declarations

Props

Props: Schema.Struct<{
    readonly truncate: Schema.optional<Schema.Boolean>;
    readonly wrap: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
        [k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
    }>]>>;
}>

view

view: <Message>(props: ViewProps, children: ReadonlyArray<Html | string>, h: HtmlBuilder<Message>) => Html

ViewProps

export type ViewProps = typeof Props.Type;

Props

Props exported by @wsagency/wseffect-themes/components/strong · Props · source
NameTypeRequiredChoicesDescription
truncatebooleanNo——
wrap"wrap" | "nowrap" | "pretty" | "balance" | Responsive<"wrap" | "nowrap" | "pretty" | "balance">No——

Rendered component example

Strong
Important
Example usage
import * as Themes from '@wsagency/wseffect-themes'
import * as SliderRange from '@wsagency/wseffect-themes/components/slider/range'
import * as Option from 'effect/Option'
import { defineView } from '@wsagency/wseffect-foldkit/submodel'
import { inertHtml, type HtmlBuilder } from '@wsagency/wseffect-foldkit/html'

const example = (h: HtmlBuilder<unknown>) => Themes.Strong.view({}, ['Important'], h)