Skip to content

Commit 56b4a6b

Browse files
committedMar 16, 2025··
unordered list docs
1 parent c89b5c5 commit 56b4a6b

File tree

10 files changed

+92
-4
lines changed

10 files changed

+92
-4
lines changed
 

‎docs-assets/app/app/Livewire/PrimesDemo.php

+27
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,33 @@ public function primes(Schema $schema): Schema
236236
->tooltip('Scan this QR code with your authenticator app')
237237
->alignCenter(),
238238
]),
239+
Group::make()
240+
->id('unorderedList')
241+
->extraAttributes([
242+
'class' => 'p-16 max-w-xl',
243+
])
244+
->schema([
245+
UnorderedList::make([
246+
Text::make('Tables'),
247+
Text::make('Schemas'),
248+
Text::make('Actions'),
249+
Text::make('Notifications'),
250+
]),
251+
]),
252+
Group::make()
253+
->id('unorderedListLarge')
254+
->extraAttributes([
255+
'class' => 'p-16 max-w-xl',
256+
])
257+
->schema([
258+
UnorderedList::make([
259+
Text::make('Tables')->size(TextSize::Large),
260+
Text::make('Schemas')->size(TextSize::Large),
261+
Text::make('Actions')->size(TextSize::Large),
262+
Text::make('Notifications')->size(TextSize::Large),
263+
])
264+
->size(TextSize::Large),
265+
]),
239266
]);
240267
}
241268

Loading
Loading
Loading
Loading

‎docs-assets/screenshots/schema.js

+18
Original file line numberDiff line numberDiff line change
@@ -1997,6 +1997,24 @@ export default {
19971997
await new Promise((resolve) => setTimeout(resolve, 500))
19981998
},
19991999
},
2000+
'primes/unordered-list/simple': {
2001+
url: 'primes',
2002+
selector: '#unorderedList',
2003+
viewport: {
2004+
width: 1920,
2005+
height: 640,
2006+
deviceScaleFactor: 3,
2007+
},
2008+
},
2009+
'primes/unordered-list/large': {
2010+
url: 'primes',
2011+
selector: '#unorderedListLarge',
2012+
viewport: {
2013+
width: 1920,
2014+
height: 640,
2015+
deviceScaleFactor: 3,
2016+
},
2017+
},
20002018
'tables/example': {
20012019
url: 'tables?table=example',
20022020
selector: 'body',

‎packages/infolists/docs/02-text.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ TextEntry::make('tags')
526526

527527
## Customizing the text size
528528

529-
Text columns have small font size by default, but you may change this to `TextSize::ExtraSmall`, `TextSize::Medium`, or `TextSize::Large`.
529+
Text entries have small font size by default, but you may change this to `TextSize::ExtraSmall`, `TextSize::Medium`, or `TextSize::Large`.
530530

531531
For instance, you may make the text larger using `size(TextSize::Large)`:
532532

‎packages/infolists/docs/03-icon.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ IconEntry::make('is_featured')
8080
->boolean()
8181
```
8282

83-
> If this column in the model class is already cast as a `bool` or `boolean`, Filament is able to detect this, and you do not need to use `boolean()` manually.
83+
> If this attribute in the model class is already cast as a `bool` or `boolean`, Filament is able to detect this, and you do not need to use `boolean()` manually.
8484
8585
<AutoScreenshot name="infolists/entries/icon/boolean" alt="Icon entry to display a boolean" version="4.x" />
8686

‎packages/schemas/docs/06-primes.md

+44-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ Text::make('Warning')
178178

179179
### Customizing the text size
180180

181-
Text columns have small font size by default, but you may change this to `TextSize::ExtraSmall`, `TextSize::Medium`, or `TextSize::Large`.
181+
Text has a small font size by default, but you may change this to `TextSize::ExtraSmall`, `TextSize::Medium`, or `TextSize::Large`.
182182

183183
For instance, you may make the text larger using `size(TextSize::Large)`:
184184

@@ -398,3 +398,46 @@ Image::make(
398398
<UtilityInjection set="schemaComponents" version="4.x">As well as allowing a static value, the `tooltip()` method also accepts a function to dynamically calculate it. You can inject various utilities into the function as parameters.</UtilityInjection>
399399

400400
<AutoScreenshot name="primes/image/tooltip" alt="Image with a tooltip" version="4.x" />
401+
402+
## Unordered list component
403+
404+
Unordered lists can be inserted into a schema using the `UnorderedList` component. The list items, comprised of [text components](#text-component), are passed to the `make()` method:
405+
406+
```php
407+
use Filament\Schemas\Components\Text;
408+
use Filament\Schemas\Components\UnorderedList;
409+
410+
UnorderedList::make([
411+
Text::make('Tables'),
412+
Text::make('Schemas'),
413+
Text::make('Actions'),
414+
Text::make('Notifications'),
415+
])
416+
```
417+
418+
<UtilityInjection set="schemaComponents" version="4.x">As well as allowing a static value, the `make()` method also accepts a function to dynamically calculate it. You can inject various utilities into the function as parameters.</UtilityInjection>
419+
420+
<AutoScreenshot name="primes/unordered-list/simple" alt="Unordered list" version="4.x" />
421+
422+
## Customizing the bullet size
423+
424+
If you are modifying the text size of the list content, you will probably want to adjust the size of the bullets to match. To do this, you can use the `size()` method. Bullets have small font size by default, but you may change this to `TextSize::ExtraSmall`, `TextSize::Medium`, or `TextSize::Large`.
425+
426+
For instance, you may make the bullets larger using `size(TextSize::Large)`:
427+
428+
```php
429+
use Filament\Schemas\Components\Text;
430+
use Filament\Schemas\Components\UnorderedList;
431+
432+
UnorderedList::make([
433+
Text::make('Tables')->size(TextSize::Large),
434+
Text::make('Schemas')->size(TextSize::Large),
435+
Text::make('Actions')->size(TextSize::Large),
436+
Text::make('Notifications')->size(TextSize::Large),
437+
])
438+
->size(TextSize::Large)
439+
```
440+
441+
<UtilityInjection set="schemaComponents" version="4.x">As well as allowing a static value, the `size()` method also accepts a function to dynamically calculate it. You can inject various utilities into the function as parameters.</UtilityInjection>
442+
443+
<AutoScreenshot name="primes/unordered-list/large" alt="Unordered list with large bullets" version="4.x" />

‎packages/tables/docs/02-columns/03-icon.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ IconColumn::make('is_featured')
6666
->boolean()
6767
```
6868

69-
> If this column in the model class is already cast as a `bool` or `boolean`, Filament is able to detect this, and you do not need to use `boolean()` manually.
69+
> If this attribute in the model class is already cast as a `bool` or `boolean`, Filament is able to detect this, and you do not need to use `boolean()` manually.
7070
7171
<AutoScreenshot name="tables/columns/icon/boolean" alt="Icon column to display a boolean" version="4.x" />
7272

0 commit comments

Comments
 (0)
Please sign in to comment.