Updateing Docs
This commit is contained in:
@@ -29,13 +29,13 @@ Indicator component for adding badges, status markers, or notifications to eleme
|
||||
```javascript
|
||||
const BasicDemo = () => {
|
||||
return Div({ class: 'flex flex-wrap gap-8 justify-center' }, [
|
||||
Indicator({ badge: '3', badgeClass: 'badge-primary' }, [
|
||||
Indicator({ value: '3', ui: 'badge-primary' }, [
|
||||
Div({ class: 'w-16 h-16 bg-base-300 rounded-lg flex items-center justify-center' }, '📦')
|
||||
]),
|
||||
Indicator({ badge: '99+', badgeClass: 'badge-secondary' }, [
|
||||
Indicator({ value: '99+', ui: 'badge-secondary' }, [
|
||||
Div({ class: 'w-16 h-16 bg-base-300 rounded-lg flex items-center justify-center' }, '🔔')
|
||||
]),
|
||||
Indicator({ badge: 'New', badgeClass: 'badge-accent' }, [
|
||||
Indicator({ value: 'New', ui: 'badge-accent' }, [
|
||||
Div({ class: 'w-16 h-16 bg-base-300 rounded-lg flex items-center justify-center' }, '✨')
|
||||
])
|
||||
]);
|
||||
@@ -55,17 +55,17 @@ $mount(BasicDemo, '#demo-basic');
|
||||
```javascript
|
||||
const StatusDemo = () => {
|
||||
return Div({ class: 'flex flex-wrap gap-8 justify-center' }, [
|
||||
Indicator({ badge: '●', badgeClass: 'badge-success badge-xs' }, [
|
||||
Indicator({ value: '●', ui: 'badge-success badge-xs' }, [
|
||||
Div({ class: 'avatar placeholder' }, [
|
||||
Div({ class: 'bg-neutral text-neutral-content rounded-full w-12 h-12 flex items-center justify-center' }, 'JD')
|
||||
])
|
||||
]),
|
||||
Indicator({ badge: '●', badgeClass: 'badge-warning badge-xs' }, [
|
||||
Indicator({ value: '●', ui: 'badge-warning badge-xs' }, [
|
||||
Div({ class: 'avatar placeholder' }, [
|
||||
Div({ class: 'bg-neutral text-neutral-content rounded-full w-12 h-12 flex items-center justify-center' }, 'JS')
|
||||
])
|
||||
]),
|
||||
Indicator({ badge: '●', badgeClass: 'badge-error badge-xs' }, [
|
||||
Indicator({ value: '●', ui: 'badge-error badge-xs' }, [
|
||||
Div({ class: 'avatar placeholder' }, [
|
||||
Div({ class: 'bg-neutral text-neutral-content rounded-full w-12 h-12 flex items-center justify-center' }, 'BC')
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user