mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 02:41:05 +00:00
feat(ordered-list): support native list styles
This commit is contained in:
parent
18cbd5c781
commit
095173a574
5 changed files with 52 additions and 9 deletions
|
@ -4,10 +4,17 @@
|
|||
* @type {boolean} [nested=false]
|
||||
*/
|
||||
export let nested = false;
|
||||
|
||||
/**
|
||||
* Set to `true` to use native list styles
|
||||
* @type {boolean} [native=false]
|
||||
*/
|
||||
export let native = false;
|
||||
</script>
|
||||
|
||||
<ol
|
||||
class:bx--list--ordered="{true}"
|
||||
class:bx--list--ordered="{!native}"
|
||||
class:bx--list--ordered--native="{native}"
|
||||
class:bx--list--nested="{nested}"
|
||||
{...$$restProps}
|
||||
on:click
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue