Banner

Installation

npx shadcn@latest add https://ui.timkit.cn/r/banner.json

Usage

import { Banner } from "@/components/ui/banner"

Examples

Banner · Outlined Style
Loading preview...
Banner · Interactive State
Loading preview...
Banner · Interactive State
Loading preview...
Banner · Interactive State
Loading preview...
Banner · Dismissible
Loading preview...
Banner · Dismissible
Loading preview...
Banner · Dismissible
Loading preview...
Banner · Dismissible
Loading preview...
Banner · Dismissible
Loading preview...
Banner · Dismissible
Loading preview...
Banner · Interactive State
Loading preview...
Banner · Loading State
Loading preview...

Structured API

Component

banner

Logic

none

Runtime Frameworks

ReactVueWeappHTML

Supported Platforms

WebWeChat Mini Program
Configuration
PropTypeDefaultDescription
logic.provider*
enum (zag | native | none)
noneState and interaction provider used by this component.
logic.machine
string
-Underlying state machine identifier when provider is zag.
platforms*
array
Web, WeChat Mini ProgramPlatforms officially supported by this schema.
frameworks*
array
React, Vue, Weapp, HTMLFramework demos/code currently available in registry files.
dependencies
array
@timui/coreRuntime package dependencies required by this registry item.
optionalPeerDependencies
array
-Optional peer dependencies used by this registry item.
registryDependencies
array
-Dependent Timkit registry components/hook entries.
Props
PropTypeDefaultDescription
variant
enum (default | success | warning | destructive)
defaultVisual style of the banner message.
dismissible
boolean
falseWhether the banner can be dismissed by the user.
Events
PropTypeDefaultDescription
onClose
event
-Callback fired when the banner is dismissed.
Slots
PropTypeDefaultDescription
default
slot
-The banner segments
Parts
PropTypeDefaultDescription
root*
root
-The banner container
content
part
-The content wrapper
icon
part
-The icon section
title
part
-The banner title
description
part
-The banner description
actions
part
-The actions section
This API reference is generated from `/packages/core` component schemas to keep React/Vue/Weapp docs consistent.

Extended notes are not available for this component yet.

Banner

Installation

npx shadcn@latest add https://ui.timkit.cn/r/banner.json

Usage

import { Banner } from "@/components/ui/banner"

Examples

Banner · Outlined Style
Loading preview...
Banner · Interactive State
Loading preview...
Banner · Interactive State
Loading preview...
Banner · Interactive State
Loading preview...
Banner · Dismissible
Loading preview...
Banner · Dismissible
Loading preview...
Banner · Dismissible
Loading preview...
Banner · Dismissible
Loading preview...
Banner · Dismissible
Loading preview...
Banner · Dismissible
Loading preview...
Banner · Interactive State
Loading preview...
Banner · Loading State
Loading preview...

Structured API

Component

banner

Logic

none

Runtime Frameworks

ReactVueWeappHTML

Supported Platforms

WebWeChat Mini Program
Configuration
PropTypeDefaultDescription
logic.provider*
enum (zag | native | none)
noneState and interaction provider used by this component.
logic.machine
string
-Underlying state machine identifier when provider is zag.
platforms*
array
Web, WeChat Mini ProgramPlatforms officially supported by this schema.
frameworks*
array
React, Vue, Weapp, HTMLFramework demos/code currently available in registry files.
dependencies
array
@timui/coreRuntime package dependencies required by this registry item.
optionalPeerDependencies
array
-Optional peer dependencies used by this registry item.
registryDependencies
array
-Dependent Timkit registry components/hook entries.
Props
PropTypeDefaultDescription
variant
enum (default | success | warning | destructive)
defaultVisual style of the banner message.
dismissible
boolean
falseWhether the banner can be dismissed by the user.
Events
PropTypeDefaultDescription
onClose
event
-Callback fired when the banner is dismissed.
Slots
PropTypeDefaultDescription
default
slot
-The banner segments
Parts
PropTypeDefaultDescription
root*
root
-The banner container
content
part
-The content wrapper
icon
part
-The icon section
title
part
-The banner title
description
part
-The banner description
actions
part
-The actions section
This API reference is generated from `/packages/core` component schemas to keep React/Vue/Weapp docs consistent.

Extended notes are not available for this component yet.