In exactly the same way.
Just set up the share on the server as normal, then get your inter-VLAN routing working as manojsharma says, so your client machine on VLAN A can reach the shared server on VLAN B.
A share is just a network destination; if you can reach it then you can use it