mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
chnages to sidenav
This commit is contained in:
parent
6be928a2d3
commit
a77127000d
186 changed files with 10791 additions and 833 deletions
20
src/components/DataTable/TableRow.svelte
Normal file
20
src/components/DataTable/TableRow.svelte
Normal file
|
@ -0,0 +1,20 @@
|
|||
<script>
|
||||
let className = undefined;
|
||||
export { className as class };
|
||||
export let isSelected = false;
|
||||
export let style = undefined;
|
||||
|
||||
import { cx } from '../../lib';
|
||||
|
||||
// TODO: include ariaLabel, onExpand, isExpanded, isSelected
|
||||
</script>
|
||||
|
||||
<tr
|
||||
on:click
|
||||
on:mouseover
|
||||
on:mouseenter
|
||||
on:mouseleave
|
||||
class={cx(isSelected && '--data-table--selected', className)}
|
||||
{style}>
|
||||
<slot />
|
||||
</tr>
|
Loading…
Add table
Add a link
Reference in a new issue